feat: mejorar ux y validaciones del toldo
This commit is contained in:
16
apps/toldo-app/tests/e2e/navigation.spec.ts
Normal file
16
apps/toldo-app/tests/e2e/navigation.spec.ts
Normal 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/);
|
||||
});
|
||||
Reference in New Issue
Block a user