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

Cypress doesn't like parenthesis () in filename #28509

Open
kazakevich-alexei opened this issue Dec 12, 2023 · 2 comments · May be fixed by #29279
Open

Cypress doesn't like parenthesis () in filename #28509

kazakevich-alexei opened this issue Dec 12, 2023 · 2 comments · May be fixed by #29279

Comments

@kazakevich-alexei
Copy link

Current behavior

E:\Work_galaktika\TMS.Agent.Cypress\tms.agent.cypress\cypress\e2e\Наличие в поисковиках\YandexSearch_CorpGal().cy.js
PS E:\Work_galaktika\TMS.Agent.Cypress\tms.agent.cypress> npx cypress run --spec "cypress/e2e/Наличие в поисковиках/YandexSearch_CorpGal().cy.js"

DevTools listening on ws://127.0.0.1:4846/devtools/browser/c773b362-8b8a-40e9-8f8a-5e06968b6350
Can't run because no spec files were found.

We searched for specs matching this glob pattern:

E:\Work_galaktika\TMS.Agent.Cypress\tms.agent.cypress\cypress\e2e\Наличие в поисковиках\YandexSearch_CorpGal().cy.js

Cypress_Debug_log_error.txt

Desired behavior

No response

Test code to reproduce

test file with parenthesis () in filename
execute command npx cypress run --spec "cypress/e2e/filename"

Cypress Version

13.5.1

Node version

18.16.1

Operating System

windows 11

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Dec 12, 2023

This is specific to the --spec arg. In cypress open and cypress run, the test with the parenthesis in the filename will run, but it won't be found via the --spec arg.

Screen Shot 2023-12-12 at 1 30 09 PM Screen Shot 2023-12-12 at 1 31 16 PM

Screen Shot 2023-12-12 at 1 31 39 PM

It's also specific to the presense of both an opening and closing parenthesis and not the presense of a single paren.
Screen Shot 2023-12-12 at 1 33 55 PM

@jennifer-shehane
Copy link
Member

This will run if you escape the paren in the --spec arg. I think it's trying to read a glob.

cypress run --spec cypress/e2e/2-advanced-examples/File\().cy.js

TomasTeixeira2003 added a commit to TomasTeixeira2003/cypress that referenced this issue Apr 3, 2024
TomasTeixeira2003 added a commit to TomasTeixeira2003/cypress that referenced this issue Apr 4, 2024
TomasTeixeira2003 added a commit to TomasTeixeira2003/cypress that referenced this issue Apr 5, 2024
TomasTeixeira2003 added a commit to TomasTeixeira2003/cypress that referenced this issue Apr 5, 2024
@TomasTeixeira2003 TomasTeixeira2003 linked a pull request Apr 5, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants