Skip to content

Commit 6e193b2

Browse files
authored
test(ui5-button): fix failing test (#12537)
* test(ui5-carousel): test i18n texts via the i18n bundle * test(ui5-button): fix failing test
1 parent e015175 commit 6e193b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/main/cypress/specs/Button.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ describe("Accessibility", () => {
348348
.should("have.attr", "aria-label", "Action");
349349

350350
cy.get("@button")
351-
.should("have.attr", "aria-description", "Emphasized");
351+
.should("have.attr", "aria-description", Button.i18nBundle.getText(BUTTON_ARIA_TYPE_EMPHASIZED));
352352
});
353353

354354
it("aria-label uses accessibleName when both text and accessibleName are provided", () => {
@@ -461,7 +461,7 @@ describe("Accessibility", () => {
461461
.should("have.attr", "aria-label", `Download 1 item`);
462462

463463
cy.get("@button")
464-
.should("have.attr", "aria-description", BUTTON_ARIA_TYPE_EMPHASIZED.defaultText);
464+
.should("have.attr", "aria-description", Button.i18nBundle.getText(BUTTON_ARIA_TYPE_EMPHASIZED));
465465
});
466466

467467
it("setting accessible-name-ref on the host is reflected on the button tag", () => {

0 commit comments

Comments
 (0)