vue-cli-plugin-prerender-spa icon indicating copy to clipboard operation
vue-cli-plugin-prerender-spa copied to clipboard

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

Open Uninen opened this issue 5 years ago • 1 comments

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

Uninen avatar Feb 08 '20 18:02 Uninen

I have the same issue.

yerzhant avatar Jul 01 '20 09:07 yerzhant