Wizard page test waits for the cancelled dialog to close before saving
This commit is contained in:
@@ -178,6 +178,7 @@ test('conectar: someone who knows nothing of databases connects the SQL Server w
|
|||||||
await page.getByRole('button', { name: 'Probar conexión' }).click();
|
await page.getByRole('button', { name: 'Probar conexión' }).click();
|
||||||
await expect(page.getByText(/usuario o la contraseña no son correctos/)).toBeVisible();
|
await expect(page.getByText(/usuario o la contraseña no son correctos/)).toBeVisible();
|
||||||
await page.getByRole('button', { name: 'Cancelar' }).click();
|
await page.getByRole('button', { name: 'Cancelar' }).click();
|
||||||
|
await expect(page.getByRole('dialog')).toHaveCount(0);
|
||||||
await page.getByRole('button', { name: 'Guardar', exact: true }).click();
|
await page.getByRole('button', { name: 'Guardar', exact: true }).click();
|
||||||
await expect(page.getByText('Versión 1 guardada.')).toBeVisible();
|
await expect(page.getByText('Versión 1 guardada.')).toBeVisible();
|
||||||
expect(problems).toEqual([]);
|
expect(problems).toEqual([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user