This is the main content
This is the main content
This is the main content
This is the main content
Try again with a different filter
-This is the expanded text
This is the expanded text
This is the expanded text
This is the expanded text
This is the new text.
`, - ), - ); - const paragraph = await $("ak-expand").$(">>>p"); - await expect(paragraph).toExist(); - await expect(paragraph).toBeDisplayed(); - await expect(paragraph).toHaveText("This is the new text."); - await expect(await $("ak-expand").$(".pf-c-expandable-section__toggle-text")).toHaveText( - "Close it now", - ); - const control = await $("ak-expand").$(">>>button"); - await control.click(); - await expect(await $("ak-expand").$(".pf-c-expandable-section__toggle-text")).toHaveText( - "Open it now", - ); - }); -}); diff --git a/web/src/elements/tests/Label.test.ts b/web/src/elements/tests/Label.test.ts deleted file mode 100644 index 456dedd30a..0000000000 --- a/web/src/elements/tests/Label.test.ts +++ /dev/null @@ -1,64 +0,0 @@ -import "../Label.js"; - -import { akLabel, PFColor } from "../Label.js"; - -import { render } from "#elements/tests/utils"; - -import { $, expect } from "@wdio/globals"; - -import { html } from "lit"; - -describe("ak-label", () => { - it("should render a label with the enum", async () => { - render(html`Try again with a different filter
-