17 lines
631 B
TypeScript
17 lines
631 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
// El login local fue reemplazado por SSO de Workspace; auth.setup.ts cubre el flujo de auth.
|
|
// Este spec mantiene solo verificaciones del dashboard tras el setup.
|
|
test.describe('Login', () => {
|
|
|
|
test('sesión válida lleva al dashboard', async ({ page }) => {
|
|
await page.goto('/dashboard')
|
|
await expect(page).toHaveURL(/dashboard/, { timeout: 15000 })
|
|
})
|
|
|
|
test('dashboard muestra encabezado', async ({ page }) => {
|
|
await page.goto('/dashboard')
|
|
await expect(page.locator('h1')).toBeVisible({ timeout: 15000 })
|
|
})
|
|
|
|
}) |