You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: Two hierarchically identical folders, of which the name of the second folder starts with the full name of the first folder, are executed simultaneously
#34813
Preparation: create the following folder structure:
tests
dev
accijns
afgehandeld.spec.ts
afgekeurd.spec.ts
accijnsgoederen
afgehandeld.spec.ts
lopend.spec.ts
algemeen
afgehandeld.spec.ts
Reproduction 1: Execute the command line: npx playwright test tests/dev/accijns --project chromium
Now the tests under 'tests/dev/accijns' are properly completed, but also the tests under 'tests/dev/accijnsgoederen'.
Reproduction 2: In VSC, select 'Run Test' on the folder '/tests/dev/accijns'.
Now the correct tests are started first, but after a few seconds also the tests under '/tests/dev/accijnsgoederen'. Self-contained reproduction provided as attachement.
Expected behavior
I expect that only the tests of the selected (sub)folder are executed. In my opinion it should not matter if there are hierarchically equal folders, where the name of one folder is completely present in the other.
Actual behavior
The system will execute all tests in all folders that are hierarchically equal and where the name of the second folder starts with the full name of the first folder.
Additional context
This problem also occurred in Playwright version 1.49.1.
Thanx @Skn0tt! With your addition the first reproduction has been dropped.
However, the second reproduction remains valid. I have added a Self-contained reproduction as an attachment.
pw-repo.zip
Version
1.50.1
Steps to reproduce
Preparation: create the following folder structure:
Reproduction 1: Execute the command line: npx playwright test tests/dev/accijns --project chromiumNow the tests under 'tests/dev/accijns' are properly completed, but also the tests under 'tests/dev/accijnsgoederen'.Reproduction 2: In VSC, select 'Run Test' on the folder '/tests/dev/accijns'.
Now the correct tests are started first, but after a few seconds also the tests under '/tests/dev/accijnsgoederen'. Self-contained reproduction provided as attachement.
Expected behavior
I expect that only the tests of the selected (sub)folder are executed. In my opinion it should not matter if there are hierarchically equal folders, where the name of one folder is completely present in the other.
Actual behavior
The system will execute all tests in all folders that are hierarchically equal and where the name of the second folder starts with the full name of the first folder.
Additional context
This problem also occurred in Playwright version 1.49.1.
Environment
The text was updated successfully, but these errors were encountered: