feat: mejorar ux y validaciones del toldo

This commit is contained in:
mono
2026-10-25 18:09:01 -05:00
parent 4ffce3e3cd
commit 8e286d6fec
24 changed files with 387 additions and 121 deletions

View File

@@ -0,0 +1,16 @@
import { expect, test } from '@playwright/test';
test('muestra el panel y permite abrir navegación móvil', async ({ page }) => {
await page.goto('/');
await expect(page.getByText('Panel de control')).toBeVisible();
await page.setViewportSize({ width: 390, height: 844 });
await page.getByTestId('navigation-toggle').click();
await expect(page.getByText('Ventas POS')).toBeVisible();
});
test('guía la configuración cuando el catálogo está vacío', async ({ page }) => {
await page.goto('/');
await expect(page.getByText('Configura tu catálogo')).toBeVisible();
await page.getByRole('link', { name: 'Ir a inventario' }).click();
await expect(page).toHaveURL(/inventario/);
});