Skip to content

Commit

Permalink
Add UI helper to open sidebar in config map test (#2055)
Browse files Browse the repository at this point in the history
Integrated the UIhelper utility to open the "Home" sidebar in the configuration map test. This enhances the test by ensuring the correct UI state before verifying the page title, improving accuracy and reliability.

Signed-off-by: Gustavo Lira <[email protected]>
  • Loading branch information
gustavolira authored Dec 4, 2024
1 parent f0c62a6 commit df8bf7b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { test, expect } from "@playwright/test";
import { KubeClient } from "../../utils/kube-client";
import { LOGGER } from "../../utils/logger";
import { Common } from "../../utils/common";
import { UIhelper } from "../../utils/ui-helper";

test.describe("Change app-config at e2e test runtime", () => {
test("Verify title change after ConfigMap modification", async ({ page }) => {
Expand Down Expand Up @@ -29,6 +30,7 @@ test.describe("Change app-config at e2e test runtime", () => {

const common = new Common(page);
await common.loginAsGuest();
await new UIhelper(page).openSidebar("Home");
LOGGER.info("Verifying new title in the UI...");
expect(await page.title()).toContain(dynamicTitle);
LOGGER.info("Title successfully verified in the UI.");
Expand Down

0 comments on commit df8bf7b

Please sign in to comment.