Skip to content

fix(toHaveText): normalize zero width white space#10623

Merged
pavelfeldman merged 1 commit into
microsoft:masterfrom
pavelfeldman:normalize_zwws
Dec 1, 2021
Merged

fix(toHaveText): normalize zero width white space#10623
pavelfeldman merged 1 commit into
microsoft:masterfrom
pavelfeldman:normalize_zwws

Conversation

@pavelfeldman
Copy link
Copy Markdown
Member

Fixes #10620

@pavelfeldman pavelfeldman added v1.17 and removed v1.17 labels Dec 1, 2021
@pavelfeldman pavelfeldman merged commit 127dacf into microsoft:master Dec 1, 2021
@valoricDe
Copy link
Copy Markdown

Hello there, should this also fix cases when a locator is not finding a text coz of a zero length whitespace in front of the text?

await page.locator('text=​[ZWSP]Vollständiger Name >> input[type="text"]').click();

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.

[BUG] trailing zero width whitespace fails toHaveText

3 participants