Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mockApi doesn't work in extension.spec.ts #1770

Open
lukaw3d opened this issue Nov 24, 2023 · 1 comment
Open

mockApi doesn't work in extension.spec.ts #1770

lukaw3d opened this issue Nov 24, 2023 · 1 comment

Comments

@lukaw3d
Copy link
Member

lukaw3d commented Nov 24, 2023

context.route only finds requests to chrome-extension://

context.backgroundPages..route doesn't help either

  await context.backgroundPages()[0].route('https:**', async route => {
    console.log(route.request().url())
    route.continue()
  })
@lukaw3d
Copy link
Member Author

lukaw3d commented Nov 30, 2023

https://playwright.dev/docs/service-workers-experimental might work for MV3 service workers, but doesn't seem to work for MV2 background pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant