Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Wrong behaviour for Playwright grep regex #24604

Closed
EldoradoEU opened this issue Aug 4, 2023 · 1 comment · Fixed by #26324
Closed

[BUG] Wrong behaviour for Playwright grep regex #24604

EldoradoEU opened this issue Aug 4, 2023 · 1 comment · Fixed by #26324
Assignees
Labels

Comments

@EldoradoEU
Copy link

System info

  • Playwright Version: [v1.36.1]
  • Operating System: Windows 10
  • Browser: MS Edge
  • Other info:

I have 3 test cases with names:
Testt, Test, TTest

command:
npx playwright test --grep "^Test$" should execute only test case "Test"

Expected

Playwright should run single test "Test"

Actual

Playwright run "TTest" and "Test" it looks like problem with sign "^" for --grep regex

@mxschmitt
Copy link
Member

mxschmitt commented Aug 4, 2023

Playwright matches against the titlePath() not only the test title. We describe it here but not here and here.

We should make it more clear or fix it.

@yury-s yury-s added the v1.38 label Aug 4, 2023
mxschmitt added a commit that referenced this issue Aug 7, 2023
Germandrummer92 pushed a commit to OctoMind-dev/playwright that referenced this issue Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants