Huge bunch of UI/UX improvements and tweaks!
This commit is contained in:
parent
501be10bfe
commit
fb25e72215
37 changed files with 1651 additions and 949 deletions
|
|
@ -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 });
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue