Wizard page test waits for the cancelled dialog to close before saving

This commit is contained in:
Roberto Treviño
2026-11-28 16:05:21 -06:00
parent 37444a25a1
commit 20e26b847a
+1
View File
@@ -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 expect(page.getByText(/usuario o la contraseña no son correctos/)).toBeVisible();
await page.getByRole('button', { name: 'Cancelar' }).click();
await expect(page.getByRole('dialog')).toHaveCount(0);
await page.getByRole('button', { name: 'Guardar', exact: true }).click();
await expect(page.getByText('Versión 1 guardada.')).toBeVisible();
expect(problems).toEqual([]);