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

file name contains character ”+“ not run #5909

Closed
mingyixu opened this issue Dec 7, 2019 · 6 comments · Fixed by #8015
Closed

file name contains character ”+“ not run #5909

mingyixu opened this issue Dec 7, 2019 · 6 comments · Fixed by #8015
Labels

Comments

@mingyixu
Copy link

@mingyixu mingyixu commented Dec 7, 2019

the file cy_web+_20191207220608.js is exsite, but run cypress,

Cannot find module web _20191207220608.js, this character ”+“  instead of " ", so not find the file.

Current behavior:

  │ Cypress:    3.7.0                                                                              │
  │ Browser:    Electron 73 (headless)                                                             │
  │ Specs:      1 found (web+_20191207220608/web+_20191207220608.js)                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  web+_20191207220608/web+_20191207220608.js                           (1 of 1)

Oops...we found an error preparing this test file:

  /home/admin/cypress/web _20191207220608/web _20191207220608.js

The error was:

Error: Cannot find module '/home/admin/cypress/web _20191207220608/web _20191207220608.js' from '/home/admin/cypress'

This occurred while Cypress was compiling and bundling your test code. This is usually caused by:

- A missing file or dependency
- A syntax error in the file or one of its dependencies

Fix the error in your code and re-run your tests.
@jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Dec 24, 2019

Yes, confirmed. Specfiles with + character do not run in Cypress.

The error seems to print the filename with the + character replaced with a character.

My file was at cypress/integration/foo+bar.js

Screen Shot 2019-12-24 at 2 35 24 PM

@cypress-bot cypress-bot bot added the stage: ready for work label Dec 24, 2019
@emchoi7
Copy link

@emchoi7 emchoi7 commented Jan 8, 2020

Could I take a look at this, if nobody else is already?

@jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Jan 8, 2020

@emchoi7 Sure

@jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Jul 14, 2020

Reopening as this is still an issue.

@jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Aug 3, 2020

The code for this is done in cypress-io/cypress#8015, but has yet to be released.

We'll update this issue and reference the changelog when it's released.

@jennifer-shehane jennifer-shehane added stage: pending release and removed stage: ready for work labels Aug 3, 2020
@cypress-bot
Copy link

@cypress-bot cypress-bot bot commented Aug 3, 2020

Released in 4.12.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.12.0, please open a new issue.

@cypress-bot cypress-bot bot removed the stage: pending release label Aug 3, 2020
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants