Static GitHub Issues

[176] e2e tests of nuxt application

prev: prefetching data from server
next: nuxtServerInit does not work if it is not in store/index.js

Hi,

Here in the basic test example: https://nuxtjs.org/guide/development-tools

It's suggested to use the API method renderAndGetWindow. It's clear that we can get the html under the route X and then assert the content received.

My question is - how to perform more complex tests using the suggested API? The ones like - login functionality or fill the form and click the submit button and after - assert the new html. I understand how to do it with nightwatch for example, but it would require running server.

Any thoughts are welcome.

Regards,

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c148">#c148</a>)</em></sub></div>