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

Create E2E testing utilities for addons #143

Open
eirikurn opened this issue Sep 13, 2017 · 0 comments
Open

Create E2E testing utilities for addons #143

eirikurn opened this issue Sep 13, 2017 · 0 comments

Comments

@eirikurn
Copy link
Member

It should be simple to create a folder with .neutrinorc.js and app.js files which are built and run in node and the browser.

It should be possible to assert the state of the dom before and after hydration as well as assert things inside rendering. E.g. a set of flags that should be set during a test run. If any part fails, some of the flags wouldn't be set so the test fails with a "friendly message".

It should be possible to test dev and prod setup.

Here are some assertions for different addons.

Tux
- assert babel es6 and jsx
- assert extract css
- assert error overlay?
- assert server render
- assert client render

React router
- assert server render route for url
- assert client render route for url

Styled components
- assert server render of styles
- assert client render of styles
- assert reuse of styles, same ids

Async bootloader
- assert async callback on server and client

Async jobs
- assert ssr of async job
- assert hydration in browser

Helmet
- assert ssr of meta tags
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

1 participant