-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 fails test:e2e script with --headless option #4799
Comments
Can't reproduce on my machine… Perhaps a cypress bug? Any more error logs? |
@sodatea @kepikoi I can reproduce on my machine, though for me failure happens regardless of whether or not I use headless. Our project suddenly stopped working, running the test:e2e command would do a build but not launch Cypress or attempt any tests. The end of the command run in the Vue UI looks like this:
I get the same result when I cloned and ran your sample project. Looks like Cypress 3.6.0 came out recently but I haven't been able to narrow down if that is the cause of this issue or not. Here is my environment info:
|
@danjohnso I'm actually having the same issue when running without @sodatea's I tried to reproduce the issue on a fresh Ubuntu 18 VM, but
|
I have the exact same scenario - error on headless and no tests run on regular one. I suppose it's OS oriented as colleagues successfully running tests on UNIX. |
Is there a way to lock the cypress version being used within the CLI
plugin? I tried installing and older version but it keeps trying to launch
the latest version instead, must need a config somewhere?
…On Thu, Nov 7, 2019, 8:14 AM Haoqun Jiang ***@***.***> wrote:
See cypress-io/cypress#5466
<cypress-io/cypress#5466>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4799?email_source=notifications&email_token=AAGQIA6IQ5UG337AGCAAV3TQSQPFRA5CNFSM4JJD447KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDMRB5I#issuecomment-551096565>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGQIA4RFPWWB4CWM45ASNDQSQPFRANCNFSM4JJD447A>
.
|
Add this field to
If using yarn, just run
|
Works @sodatea only till node 12.11.0 version, the default LTS
|
I have the same issue @fourpixels on Windows 10 with node 10 or node 12 with new project created with vue-cli. Error on headless and no tests run on regular one. |
Manually running dev server via yarn serve and then manually run cypress via npx cypress open or npx cypress run works. |
Fixed with cypress 3.8.0 released today |
Version
4.0.5
Reproduction link
https://github.com/kepikoi/vue-cli-repro
Environment info
Steps to reproduce
npm run test:e2e -- --headless
What is expected?
base vue-cli setup executes the e2e test successfully in headless mode to be incorporated into a ci/cd pipeline
What is actually happening?
it fails with
ERROR Error: Command failed: C:\www\testing\vue-cli\superbase\node_modules\cypress\bin\cypress run --config baseUrl=http://localhost:8080/
vue-cli setup was done with following options:
The text was updated successfully, but these errors were encountered: