-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Ampersand (&) in spec file causes test not to run #4210
Labels
Comments
Can confirm, opening a spec file with an |
2 tasks
The code for this is done in cypress-io/cypress#6539, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior:
The spec file in my example has an '&' in the title:
![image](https://user-images.githubusercontent.com/5534029/57856711-90984a00-77bb-11e9-8933-3ab7357a67e5.png)
capture_all_student_documents-&-forms_get_requests.spec.js
The dashboard lists the below error. Note the
![image](https://user-images.githubusercontent.com/5534029/57856725-968e2b00-77bb-11e9-8b02-f70a77f60094.png)
Error: Cannot find module [...] capture_all_student_documents-
where the wrong filename is listed because it has been truncated immediately before the ampersand.Desired behavior:
Spec files with ampersands in the filenames run without error. I have not tested other characters to see if there are other common characters which also cause errors, but if so, these other characters would also run without error.
Steps to reproduce: (app code and test code)
Name a spec file with an '&' as part of the file name. Run the spec file.
Versions
Cypress 3.2, Windows 10, Chrome
Workaround
Obviously you can rename the spec file to something without the '&', such as replacing it with 'and'.
The text was updated successfully, but these errors were encountered: