question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Two files run when names are similar

See original GitHub issue

Context:

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:closed
  • Created a year ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pavelfeldmancommented, May 28, 2022

This looks right to me, what are your expectations?

0reactions
oytunerddcommented, May 31, 2022

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found