Skip to content

feat(matchers,aria-snapshot): allow disabling number-to-regex substit…#41273

Open
Git-Raini wants to merge 1 commit into
microsoft:mainfrom
Git-Raini:fix/40080-aria-snapshot-number-substitution
Open

feat(matchers,aria-snapshot): allow disabling number-to-regex substit…#41273
Git-Raini wants to merge 1 commit into
microsoft:mainfrom
Git-Raini:fix/40080-aria-snapshot-number-substitution

Conversation

@Git-Raini

Copy link
Copy Markdown

…ution in aria snapshots (#40080)

  • Add numbers?: 'regex' | 'static' to ExpectConfig.toMatchAriaSnapshot, MatcherReceived, and protocol channels
  • Thread numbers through Frame.ariaSnapshot and ariaSnapshotForFrame into the injected script
  • Treat numbers === 'static' as renderStringsAsRegex === false in aria snapshot rendering

Fixes #40080

…ution in aria snapshots (microsoft#40080)

- Add numbers?: 'regex' | 'static' to ExpectConfig.toMatchAriaSnapshot, MatcherReceived, and protocol channels
- Thread numbers through Frame.ariaSnapshot and ariaSnapshotForFrame into the injected script
- Treat numbers === 'static' as renderStringsAsRegex === false in aria snapshot rendering

Fixes microsoft#40080
@Git-Raini

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

[Feature]: Be able to switch off regex number substitution for aria snapshots

1 participant