-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Facebook Click to Load integration tests (#1039)
Improvements to the Facebook Click to Load integration tests, including: 1. Reduce flaky failures by waiting until all the required extension configuration has been loaded. 2. Log requests using Puppeteer instead of relying on the test page to accurately report the number of allowed/blocked requests. 3. Test requests to the SDK are redirected properly. 4. Test that unblocking works correctly and that reloading the page restores blocking. This change also: - Renames and expands on the background waiting integration test helper module. That way, we can avoid duplicating configuration waiting logic. - Tweaks the request logging helper module to avoid logging in-flight requests that started before a navigation but finished afterwards. That race condition was the cause of some test flakiness. - Tweaks the YouTube CTL tests to wait for "networkidle0" instead of "networkidle2". That means waiting for all requests to complete, rather than all but two.
- Loading branch information
Showing
7 changed files
with
185 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.