11 lines
487 B
TypeScript
11 lines
487 B
TypeScript
import { test, expect } from '@playwright/test'
|
|||
|
|||
// Authenticated smoke: the stored session lands on the dashboard and the
|
|||
// app chrome (navbar) renders instead of bouncing back to /login.
|
|||
test('authenticated session reaches the dashboard', async ({ page }) => {
|
|||
await page.goto('/dashboard')
|
|||
await expect(page).toHaveURL(/\/dashboard/)
|
|||
// The shared Navbar shows the TREK brand once authenticated.
|
|||
await expect(page.getByRole('img', { name: 'TREK' }).first()).toBeVisible()
|
|||
})
|