[BUG] Two files run when names are similar
See original GitHub issueContext:
Two spec files with similar head or the tail of the name, when the shorter one is triggered both files run and two browser open.
For example Cutover_For_Exited_With_Different_Beneficiary_Reentered.spec Cutover_For_Exited_With_Different_Beneficiary.spec
Let’s assume these files exist in our suite, when triggered by using the shorter named file two of the spec files get triggered, with no relation to the length of the file names;
npx playwright test Scenario_One_Test_Case_One_Cutover_For_Exited_With_Different_Beneficiary --project=dev
two different browsers open
- Playwright Version: [1.21]
- Operating System: [Windows,]
- Node.js version: [16.14.0]
- Browser: [Chromium]
Issue Analytics
- State:
- Created a year ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
windows folder holding 2 files with the same name - Super User
I tested this by creating two diff word files and saved them with the same file name in "documents" folders under my use...
Read more >Is it a bad practice to give two very different files with the same ...
Consider the cost/benefit ratio of your two options: Would reusing the same name cause confusion or naming conflicts?
Read more >Two folders with exactly the same name, location but different
At least one, and possibly both, of the folders is displaying a name coming from a desktop.ini file, rather than the actual file...
Read more >Pulling two files with same name but different case-format into ...
These are the two files I've pushed to Bitbucket from a Linux OS - same name, just different case formats: TesT.txt. test.txt.
Read more >392285 – Two projects having same file names, break point in ...
Bug 392285 - Two projects having same file names, break point in one ... has same file name, when I run the project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This looks right to me, what are your expectations?
@Bessonov i found how to properly use this i guess it requires the file path as well /samples/my-spec.spec.ts
and in the case where there is /samples/my-spec-2.spec.ts under the project it only works one file this way