-
Couldn't load subscription status.
- Fork 7
Open
Description
It would be awesome to have some End-to-End tests.
Strangely, this isn't as easy as one might think, at least not with the current setup of this extension, which uses a popup to configure the active features.
I tried a couple of times in the past and always failed at some point.
A simple test could look like:
- Open a headless browser that has this extension installed
- Navigate to a local HTML file, which has a Turbo Frame inside it
- Open the popup and active the "Highlight Frames" feature
- Check if the Turbo Frame has an outline
The main difficulty is point three, opening the popup in the right context.
An alternative approach could be to not open the popup at all, and instead configure the activated features by mocking the Devtool.getOptions call.
Metadata
Metadata
Assignees
Labels
No labels