We have our extension installed on chrome browser which is launched by cypress.
As url in the browser is one as per the list of integration tests(highlighted in red), unable to simulate webExtension apis like browser.tab.onUpdate or browser.webRequest etc.
The selector playground doesnt support installing extension on it to test those events.
For example listeners like this in the background script of our extension
browser.webRequest.onBeforeRequest.addListener(
(details) => {
callback(details)
},
{
urls: URLS_TO_MONITOR,
types: ['main_frame'],
}
)
How can we simulate such events on browser launched by cypress ?