Huge bunch of UI/UX improvements and tweaks!
Some checks failed
Test / vitest (push) Successful in 10m36s
Test / playwright (push) Failing after 9m23s
Test / visual (push) Failing after 9m13s
Test / Notify on failure (push) Successful in 2s

This commit is contained in:
Jennie Robinson Faber 2026-04-06 16:17:12 +01:00
parent 501be10bfe
commit fb25e72215
37 changed files with 1651 additions and 949 deletions

View file

@ -109,19 +109,13 @@ test.describe("keyboard navigation", () => {
test("escape closes login modal", async ({ page }) => {
await page.goto("/member/dashboard");
// The page renders an inline "sign in required" wall for unauthenticated users
const signInBlock = page.locator("h2", { hasText: "Sign in required" });
await expect(signInBlock).toBeVisible({ timeout: 10000 });
// Click the Sign In button to open the login modal overlay
await page.locator("button", { hasText: "Sign In" }).click();
const modal = page.locator("text=Sign in to your dashboard");
await expect(modal.first()).toBeVisible({ timeout: 5000 });
// Auth middleware auto-opens the login modal for unauthenticated users
const modal = page.getByRole("dialog");
await expect(modal).toBeVisible({ timeout: 10000 });
await page.keyboard.press("Escape");
// Modal should close
await expect(modal.first()).not.toBeVisible({ timeout: 5000 });
await expect(modal).not.toBeVisible({ timeout: 5000 });
});
});