mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-10 21:19:08 +00:00
remove overlay
This commit is contained in:
28
test/fx.ts
28
test/fx.ts
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user