fix: asegurar runtime android y diagnostico pos

This commit is contained in:
mono
2026-10-25 19:00:14 -05:00
parent 4ef79f3f9f
commit fdfcc6e00b
9 changed files with 105 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ 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.locator('.mdi-menu')).toBeVisible();
await expect(page.getByText('Panel de control')).toBeVisible();
await page.setViewportSize({ width: 390, height: 844 });
await page.getByTestId('navigation-toggle').click();
@@ -26,6 +27,7 @@ test('permite volver a inicio desde Jornada e Inventario', async ({ page }) => {
if ((await page.viewportSize())!.width < 960) await page.getByTestId('navigation-toggle').click();
await page.getByRole('link', { name: 'Inventario', exact: true }).click();
await expect(page.getByText('Inventario y Productos')).toBeVisible();
await expect(page.locator('.mdi-home-outline')).toBeVisible();
await page.getByTestId('back-button').click();
await expect(page.getByText('Panel de control')).toBeVisible();
});