Fix playwright config mismatch
CI Pipeline / test (20) (pull_request) Successful in 7m8s
CI Pipeline / test (18) (pull_request) Successful in 7m24s
CI Pipeline / e2e (webkit) (pull_request) Has been cancelled
CI Pipeline / visual-regression (pull_request) Has been cancelled
CI Pipeline / performance (pull_request) Has been cancelled
CI Pipeline / storybook (pull_request) Has been cancelled
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
CI Pipeline / e2e (firefox) (pull_request) Has been cancelled
CI Pipeline / e2e (chromium) (pull_request) Has been cancelled

This commit is contained in:
adilallo
2025-09-02 19:06:51 -06:00
parent edf8637d7d
commit 1cda0e7ad3
8 changed files with 196 additions and 116 deletions
+11 -5
View File
@@ -35,8 +35,12 @@ for (const bp of breakpoints) {
await expect(
page.getByRole("menuitem", { name: /use cases/i }),
).toBeVisible();
await expect(page.getByRole("menuitem", { name: /learn/i })).toBeVisible();
await expect(page.getByRole("menuitem", { name: /about/i })).toBeVisible();
await expect(
page.getByRole("menuitem", { name: /learn/i }),
).toBeVisible();
await expect(
page.getByRole("menuitem", { name: /about/i }),
).toBeVisible();
});
test(`authentication elements visibility at ${bp.name}`, async ({
@@ -59,12 +63,14 @@ for (const bp of breakpoints) {
// TODO: Fix logo visibility test - currently all logos are hidden at xs breakpoint
// Logo should be visible at all breakpoints
// Look for any visible logo text in the header navigation
const logos = page.getByRole("navigation", { name: /main navigation/i }).getByText("CommunityRule");
const logos = page
.getByRole("navigation", { name: /main navigation/i })
.getByText("CommunityRule");
const logoCount = await logos.count();
// At least one logo should be visible
expect(logoCount).toBeGreaterThan(0);
// Check that at least one logo is visible (not all are hidden)
let hasVisibleLogo = false;
for (let i = 0; i < logoCount; i++) {