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

e2e tests fail with latest vue-cli + vue-prerender-spa-plugin #86

Open
Uninen opened this issue Feb 8, 2020 · 1 comment
Open

e2e tests fail with latest vue-cli + vue-prerender-spa-plugin #86

Uninen opened this issue Feb 8, 2020 · 1 comment

Comments

@Uninen
Copy link

Uninen commented Feb 8, 2020

Describe the bug

End to end tests with Cypress fail when installing this plugin to a fresh project created by vue-cli (using router in history mode and Cypress for tests).

To Reproduce
Steps to reproduce the behavior:

  1. Create new project, select router, (I also usex vuex) and e2e tests with Cypress. (Run yarn test:e2e -- it works)
  2. Add the plugin vue add prerender-spa
  3. Run yarn test:e2e -- tests fail to start (Error: ENOENT: no such file or directory, stat '/Users/uninen/LocalDocuments/Projects/TestProjects/vueclie2etest/dist/app.html')
  4. Run yarn build, then run tests again with yarn test:e2e. Now Cypress starts but the tests fail as the server only show s blank page.

I also recreated the issue with a new blank project, the issue was identical. If I disable the plugin, tests start to work again.

Expected behavior
Tests should work after installing the plugin.

Additional context
Package version: 3.2.1
Vue version: 2.6.11
Vue CLI version: 4.2.2
@vue/cli-plugin-e2e-cypress: 4.2.0

@yerzhant
Copy link

yerzhant commented Jul 1, 2020

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants