mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-04 19:21:51 +00:00
test(ui): accept wizard close while awaiting no-scan state
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user