Add the ability to pass the tab id to popup opened in separate tab
Background / User story
Automation can not interact with the browser toolbar so we currently can't automate any of the extension popup tests. While it's possible to open ABP popup in a separate tab (<extension-id>/popup.html
), it only shows the 'empty state'.
Adding the ability to pass a tab id as a parameter to the popup opened in a separate tab, in order for the popup to be able to interact with that page, would enable us to automate popup tests as well.
Some notes:
- this is already implemented in AdBlock- when opening the popup in a separate tab and passing a tab ID to it (
<extension-id>/adblock-button-popup.html?tabid=2
), the popup is displayed and can interacted with, as it would be opened on the page we took the id from - we pass tab id when opening the issue reporter, so that reporter can collect page info (
<extension-id>/issue-reporter.html?2
, where2
is the tab id)
Once this is done, we can go ahead with implementing extension popup tests: https://studio.cucumber.io/projects/283030/test-runs/784187/folder-snapshots/8333208
What to change
- Design: /
- Research: (Link to any research data here)
- Spec: (Create spec merge request and link to it from here)
- Legal: /
- Development: (Mention any implementation details here)
Hints for testers
tbd
Hints for translators
tbd
Edited by Ursa Kacar