Skip to content

Commit

Permalink
fix: move tooltip tests to acc section
Browse files Browse the repository at this point in the history
  • Loading branch information
didip1000 committed Nov 24, 2024
1 parent b55edaa commit 3411f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/main/cypress/specs/Button.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ describe("Button general interaction", () => {
.find("[ui5-icon]")
.should("have.attr", "mode", "Decorative");
});
});

describe("Accessibility", () => {
it("setting tooltip on the host is reflected on the button tag", () => {
cy.mount(html`<ui5-button icon="message-information" tooltip="Go home"></ui5-button>`);

Expand All @@ -233,9 +235,7 @@ describe("Button general interaction", () => {
cy.get("@button")
.should("have.attr", "title", "Download");
});
});

describe("Accessibility", () => {
it("aria-expanded is properly applied on the button tag", () => {
cy.mount(html`<ui5-button icon="home" design="Emphasized">Action Bar Button</ui5-button>`);

Expand Down

0 comments on commit 3411f08

Please sign in to comment.