Skip to content

Commit 7ae0dbd

Browse files
committed
dialog fix
1 parent d32f9f4 commit 7ae0dbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/extension/extensionTest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export const extensionTest = baseTest.extend<TraceViewerFixtures>(traceViewerFix
5555
await context.pages()[0].getByRole('button', { name: 'Share This Tab' }).click();
5656
await context.pages()[0].goto('about:blank');
5757
const browser = await playwright.chromium.connectOverCDP(`${origin}${server.CDP_PATH}`);
58+
context.on('dialog', dialog => {
59+
// Make sure the dialog is not dismissed automatically.
60+
});
5861
await use(browser);
5962
httpServer.close();
6063
}, { scope: 'worker' }],

0 commit comments

Comments
 (0)