import { test, expect } from '@playwright/test'; test('dashboard pagina carga', async ({ page }) => { await page.goto('/dashboard'); await expect(page.locator('h2')).toContainText('Bienvenido'); }); test('pagina reportes ventas tiene selectores', async ({ page }) => { await page.goto('/reportes/ventas'); await expect(page.locator('select')).toBeVisible(); await expect(page.locator('button:has-text("Generar")')).toBeVisible(); }); test('pagina inicio redirige', async ({ page }) => { await page.goto('/'); await expect(page).toHaveURL(/\/login|\/dashboard/); });