Skip to content

Commit

Permalink
test: remove timeout from _extensionServiceWorkerDevtools
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifigueira committed Oct 27, 2024
1 parent 3f736b0 commit ebbd7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/crx/crxTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const test = base.extend<{

// we don't have a way to capture service worker logs, so this trick will open
// service worker dev tools for debugging purposes
_extensionServiceWorkerDevtools: async ({ context, extensionId, extensionServiceWorker }, run) => {
_extensionServiceWorkerDevtools: [async ({ context, extensionId, extensionServiceWorker }, run) => {
const extensionsPage = await context.newPage();
await extensionsPage.goto(`chrome://extensions/?id=${extensionId}`);
await extensionsPage.locator('#devMode').click();
Expand All @@ -165,7 +165,7 @@ export const test = base.extend<{
await new Promise(r => setTimeout(r, 100));
}
await run();
},
}, { timeout: 0 }],

_debug: async ({ extensionServiceWorker }, run) => {
await run({
Expand Down

0 comments on commit ebbd7f0

Please sign in to comment.