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

Use iframes instead of tabs in integration tests #2928

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

jeffposnick
Copy link
Contributor

R: @tropicadri

I am hoping that this fixes #2755 once and for all!

The commonality between all of our flaky integration tests seems to be that they involve opening multiple tabs, in order to test behaviors related to multiple clients under the control of a service worker.

There's another way to create an additional client, though, and that's to add an <iframe> to the existing tab. As long as the URL of the <iframe> is under the scope of a service worker, it will be treated the same as any top-level WindowClient would be.

From what I can tell, switching the integration test cases to use <iframe>s instead of tabs ends up working fine in Firefox and Safari, including some tests that we explicitly skipped on those browsers.

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

Successfully merging this pull request may close these issues.

Safari integration test flakiness
2 participants