Repository navigation
fix(trace): retain browser snapshots when afterAll fails - #44409
Open
mr-anton-t wants to merge 1 commit into
Open
mr-anton-t wants to merge 1 commit into
mr-anton-t wants to merge 1 commit into
Conversation
Refs: dbeaver/pro#12060, microsoft#31541, microsoft#28527, microsoft#32377 Add regression tests for missing browser actions and DOM snapshots when only afterAll fails. Verified with Playwright's native test harness: - Without fix: 6 regression tests fail; 1 control passes. - With fix: all 7 new tests and 18 existing tests pass (25 total).
Author
|
@microsoft-github-policy-service agree |
This branch has not been deployed
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.
Summary
Fixes #44408.
Test-scoped fixture teardown stops browser trace chunks before afterAll hooks run. In retain modes, those chunks can be discarded while the test result is still successful, even though a subsequent afterAll failure marks the test as failed.
Validation
The original fix was validated against Playwright v1.64.0 using the native test harness:
This PR cherry-picks only that fix and its tests onto current main; it applied without conflicts. Diff checks passed after the cherry-pick. The test suite has not yet been rerun on this new main-based branch.
The public reproduction in #44408 was separately verified against the unmodified official @playwright/test 1.65.1 npm package. The issue includes reproduction instructions and comparison trace archives for retain-on-failure and on.