Repository navigation
playwright: fix global error listener - #9301
Merged
Merged
Conversation
added 2 commits
November 30, 2026 07:48
alxndrsn
marked this pull request as ready for review
November 30, 2026 09:53
janl
approved these changes
Nov 30, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Originally set per-page, in 7e15d3b the
'pageerror'listener was moved to the playwrightBrowserContext. InBrowserContext, the listener should check for'weberror'instead.See:
Since that change, various changes have introduced changes to the integration tests which break them in browser environments (e.g. use of
require(), changingvartoconstcausing global variable clashes).Closes #9299
Effect
Running command:
CLIENT=firefox npm testThis branch
masterOverview
This PR fixes error handling, and makes the minimal possible changes to tests to make sure they are all loading & running in browsers.
Testing recommendations
CLIENT=firefox npm testRelated Issues or Pull Requests
Checklist
docsfolder