Skip to content

fix: Handle non-string Playwright snapshots without crashing#89

Draft
meirk-brd wants to merge 1 commit intomainfrom
fix/aria-snapshot-nonstring-fallback
Draft

fix: Handle non-string Playwright snapshots without crashing#89
meirk-brd wants to merge 1 commit intomainfrom
fix/aria-snapshot-nonstring-fallback

Conversation

@meirk-brd
Copy link
Collaborator

  • Ensure filter_snapshot returns the raw _snapshotForAI output when it isn’t text, avoiding TypeErrors.
  • Simplify parse_playwright_snapshot by removing redundant type check now that the guard/fallback lives in filter_snapshot.
  • Keeps ARIA parsing intact for string snapshots while letting DOM snapshot logic proceed on unexpected types.

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.

1 participant