Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add E2E Tests #78

Open
leonvogt opened this issue Oct 12, 2024 · 0 comments
Open

Add E2E Tests #78

leonvogt opened this issue Oct 12, 2024 · 0 comments

Comments

@leonvogt
Copy link
Owner

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:

  1. Open a headless browser that has this extension installed
  2. Navigate to a local HTML file, which has a Turbo Frame inside it
  3. Open the popup and active the "Highlight Frames" feature
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant