Skip to content

fix: improve error handling for ariaSnapshot and fixture integrity#41502

Open
faisalaffan wants to merge 2 commits into
microsoft:mainfrom
faisalaffan:fix-error-handling
Open

fix: improve error handling for ariaSnapshot and fixture integrity#41502
faisalaffan wants to merge 2 commits into
microsoft:mainfrom
faisalaffan:fix-error-handling

Conversation

@faisalaffan

Copy link
Copy Markdown

Two small error-handling improvements:

  • ariaSnapshot: Replace empty catch {} with debugLogger.log(...) so AI snapshot failures during test errors are traceable
  • fixtureRunner: Replace console.error + silent _usages.clear() with throw new Error(...) — fixture integrity violations now fail fast instead of silently corrupting state

@faisalaffan faisalaffan marked this pull request as ready for review June 27, 2026 07:06
@Skn0tt

Skn0tt commented Jun 29, 2026

Copy link
Copy Markdown
Member

Please start with filing an issue.

@Skn0tt Skn0tt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thank you.

Comment thread packages/playwright/src/worker/fixtureRunner.ts Outdated
@yury-s

yury-s commented Jul 10, 2026

Copy link
Copy Markdown
Member

@faisalaffan can you address the comment and rebase so that we could merge it?

@faisalaffan

Copy link
Copy Markdown
Author

@yury-s already rebased and dropped the fixtureRunner change, only the ariaSnapshot debugLogger fix remains. Ready for another look

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.

3 participants