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
|
|
@ -6,11 +6,15 @@ test.describe('Authentication flows', () => {
|
|||
// Navigate to a protected member page without being logged in
|
||||
await page.goto('/member/dashboard')
|
||||
|
||||
// Modal auto-opens on load; close it via the × button and wait for it to dismiss
|
||||
await page.locator('.modal-close').click()
|
||||
await expect(page.getByRole('dialog')).toBeHidden({ timeout: 5000 })
|
||||
|
||||
// Page shows the unauth state with sign-in button
|
||||
await expect(page.getByRole('heading', { name: 'Sign in required' })).toBeVisible({ timeout: 10000 })
|
||||
await expect(page.getByRole('button', { name: 'Sign In' })).toBeVisible()
|
||||
|
||||
// Clicking Sign In opens the login modal with email input
|
||||
// Clicking Sign In re-opens the login modal with email input
|
||||
await page.getByRole('button', { name: 'Sign In' }).click()
|
||||
await expect(page.locator('.modal-title')).toBeVisible({ timeout: 5000 })
|
||||
await expect(page.locator('input[type="email"]')).toBeVisible()
|
||||
|
|
@ -53,6 +57,8 @@ test.describe('Authentication flows', () => {
|
|||
|
||||
// Navigating to a protected page should show the sign-in prompt
|
||||
await page.goto('/member/dashboard')
|
||||
await page.locator('.modal-close').click()
|
||||
await expect(page.getByRole('dialog')).toBeHidden({ timeout: 5000 })
|
||||
await expect(page.getByRole('heading', { name: 'Sign in required' })).toBeVisible({ timeout: 10000 })
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue