Skip to content

Commit

Permalink
chore(e2e): fix a11y test to look for a new attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 26, 2021
1 parent 1b73c3b commit c19ecaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/integration/modules/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ context('Core', () => {
cy.getPaginationBullet(9).should('have.attr', 'aria-label', 'Slide to 10');
});

it('should add aria-role-description="slide" to swiper-slide', () => {
it('should add aria-roledescription="slide" to swiper-slide', () => {
cy.initSwiper({
a11y: { itemRoleDescriptionMessage: 'test' },
});
cy.getSlides().should('have.attr', 'aria-role-description', 'test');
cy.getSlides().should('have.attr', 'aria-roledescription', 'test');
});

it('should add aria-label="1 of 10" to swiper-slide', () => {
Expand All @@ -40,11 +40,11 @@ context('Core', () => {
cy.getSlide(9).should('have.attr', 'aria-label', '10 of 10');
});

it('should add aria-role-description="slide" to swiper-container', () => {
it('should add aria-roledescription="slide" to swiper-container', () => {
cy.initSwiper({
a11y: { containerRoleDescriptionMessage: 'test' },
});
cy.getSliderContainer().should('have.attr', 'aria-role-description', 'test');
cy.getSliderContainer().should('have.attr', 'aria-roledescription', 'test');
});

it('should add role="group" to swiper-slide', () => {
Expand Down

0 comments on commit c19ecaf

Please sign in to comment.