test(ui): accept wizard close while awaiting no-scan state

This commit is contained in:
Alan Buscaglia
2026-06-30 00:06:12 +02:00
parent 78a99cc6de
commit aa9bc71294
+4 -1
View File
@@ -1059,7 +1059,10 @@ export class ProvidersPage extends BasePage {
// dedicated scan/connection flows and can hang on external services.
if (!(await testConnectionButton.isVisible().catch(() => false))) {
try {
await expect(launchStepReady).toBeVisible({ timeout });
await Promise.race([
launchStepReady.waitFor({ state: "visible", timeout }),
this.wizardModal.waitFor({ state: "hidden", timeout }),
]);
} catch (error) {
const debugInfo = await this.getWizardDebugInfo();
throw new Error(