prograhammer / vue-pizza

:pizza: Example Vue 2 Project (a scalable Single Page App using Vue-cli, VueRouter, Vuex and more)
923 stars 232 forks source link

End to end tests using Cypress #8

Open bahmutov opened 6 years ago

bahmutov commented 6 years ago

Would you be open to merging a pull request from me that replaces Selenium E2E tests with Cypress test runner? I think it would be simpler and more useful for anyone using Vue to see the GUI and be able to interact with the tests.

Here is some info on the runner

prograhammer commented 6 years ago

Hey @bahmutov

I'm just now getting to do the rounds on this repo and a few others. I had started in the dev branch on doing a complete overhaul but two things stopped me:

  1. App structure rearrangement (think folder grouping by vertical slices).
  2. TypeScript. I've only just recently got TypeScript working in Vue with Webpack as you can see the PR here: https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/77 and extension here: https://marketplace.visualstudio.com/items?itemName=prograhammer.tslint-vue

This is going to change a lot of things. I hope to have this current repo updated beautifully by next week. How do you feel about holding off until then? Also, I've got testing working with karma/mocha in TypeScript but I haven't looked at E2E. How do you feel about handling that? I'll push up the work and leave E2E untouched for you or someone to help fill in that gap.

Thoughts?

prograhammer commented 6 years ago

Oh, I also need to look into how to do snapshots in karma/mocha. I can't use Jest because it breaks with TypeScript/Vue.