feat: importar csv y auditar ediciones
This commit is contained in:
@@ -14,3 +14,18 @@ test('guía la configuración cuando el catálogo está vacío', async ({ page }
|
||||
await page.getByRole('link', { name: 'Ir a inventario' }).click();
|
||||
await expect(page).toHaveURL(/inventario/);
|
||||
});
|
||||
|
||||
test('permite volver a inicio desde Jornada e Inventario', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
if ((await page.viewportSize())!.width < 960) await page.getByTestId('navigation-toggle').click();
|
||||
await page.getByRole('link', { name: 'Jornada', exact: true }).click();
|
||||
await expect(page.getByText('Jornada del Toldo')).toBeVisible();
|
||||
await expect(page.getByLabel('Migas de pan')).toContainText('Inicio');
|
||||
await page.getByRole('link', { name: 'Inicio' }).last().click();
|
||||
await expect(page.getByText('Panel de control')).toBeVisible();
|
||||
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 page.getByTestId('back-button').click();
|
||||
await expect(page.getByText('Panel de control')).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user