diff --git a/packages/main/cypress/specs/Carousel.cy.tsx b/packages/main/cypress/specs/Carousel.cy.tsx index 771193c1035e..2a62f0b5f648 100644 --- a/packages/main/cypress/specs/Carousel.cy.tsx +++ b/packages/main/cypress/specs/Carousel.cy.tsx @@ -244,8 +244,8 @@ describe("Carousel general interaction", () => { cy.get("#carousel5") .shadow() - .find(".ui5-carousel-root") - .should("have.attr", "role", "region"); + .find("section.ui5-carousel-root") + .should("exist"); cy.get("#carousel5") .shadow() diff --git a/packages/main/src/CarouselTemplate.tsx b/packages/main/src/CarouselTemplate.tsx index 93ee3428a8b1..ca93b7acfabf 100644 --- a/packages/main/src/CarouselTemplate.tsx +++ b/packages/main/src/CarouselTemplate.tsx @@ -10,7 +10,6 @@ export default function CarouselTemplate(this: Carousel) { "ui5-carousel-root": true, [`ui5-carousel-background-${this._backgroundDesign}`]: true, }} - role="region" aria-label={this.ariaLabelTxt} aria-roledescription={this._roleDescription} onFocusIn={this._onfocusin}