From c19ecafc7f52f1da77a5aca25a33de781e0a6e8f Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Fri, 26 Mar 2021 15:06:46 +0300 Subject: [PATCH] chore(e2e): fix a11y test to look for a new attribute --- cypress/integration/modules/a11y.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/modules/a11y.js b/cypress/integration/modules/a11y.js index 9ecd1df9a..2418f364e 100644 --- a/cypress/integration/modules/a11y.js +++ b/cypress/integration/modules/a11y.js @@ -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', () => { @@ -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', () => {