Files
CRM_AGENTES_CARGA/frontend/e2e/login.spec.ts

17 lines
615 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 })
})
})