Add integration tests for extension functionality (get Puppeteer to intercept web worker requests) #12194
Labels
estimate/2d
planned/3.19
testing
Issues that deal with unit tests, integration tests and the testing infrastructure.
Milestone
Extensions are one of our most important features to test. The way we would test this is by serving a mock extension that registers very simple providers.
Unfortunately Puppeteer currently has a severe limitation: It can't intercept requests triggered from web workers, if request interception is on for their parent page they will just hang. This means extensions can't be easily loaded in integration tests. Neither
importScripts()
(which we use to load extension bundles) norfetch()
requests can be intercepted.Issues in Puppeteer:
It seems there is a possible workaround by using the CDP through Puppeteer directly: puppeteer/puppeteer#2781 (comment)
This would be crucial to solve for an extensive integration test suite.
The text was updated successfully, but these errors were encountered: