remove overlay

This commit is contained in:
Asier Isayas
2026-01-03 11:29:27 -05:00
parent 7c826484ae
commit 8b5c60ec73

View File

@@ -481,23 +481,23 @@ export class DataExplorer {
// timeout: ONE_MINUTE_MS,
// });
// Dismiss overlay if it appears
const overlay = this.frame.locator("#webpack-dev-server-client-overlay").first();
// const overlay = this.frame.locator("#webpack-dev-server-client-overlay").first();
for (let attempt = 0; attempt < 5; attempt++) {
await scaleAndSettingsButton.click();
// for (let attempt = 0; attempt < 5; attempt++) {
// await scaleAndSettingsButton.click();
try {
// Give it up to 30s to show up
await overlay.waitFor({ state: "visible", timeout: 15 * ONE_SECOND_MS });
// try {
// // Give it up to 30s to show up
// await overlay.waitFor({ state: "visible", timeout: 15 * ONE_SECOND_MS });
// Overlay appeared => dismiss and retry
await overlay.contentFrame().getByLabel("Dismiss").click();
continue;
} catch {
// Overlay did not appear within 30s => success
break;
}
}
// // Overlay appeared => dismiss and retry
// await overlay.contentFrame().getByLabel("Dismiss").click();
// continue;
// } catch {
// // Overlay did not appear within 30s => success
// break;
// }
// }
}
/** Gets the console message element */