oasisprotocol / wallet

Official non-custodial wallet for the Oasis Network.
https://wallet.oasis.io
Apache License 2.0
110 stars 46 forks source link

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

Open lukaw3d opened 1 year ago

lukaw3d commented 1 year ago

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 commented 1 year ago

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