This tests that the app handles the sign in flow properly and the new graph launches successfully after that.
mikado-machine/e2e$ npm test
> e2e@1.0.0 test
> jest
PASS e2e e2e/user.spec.js (6.986 s)
Login
✓ Log in with the emulator (6651 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 7.019 s, estimated 33 s
Ran all test suites.
Emulators still require an internet connection to load the auth dialog. The URL might be hardcoded
Emulators must be used to not be treated as an attack on Google
It always creates a new Google account and signs up with it
The current initial graph is assumed
Puppeteer makes everything simple, work without boilerplate, and fit within 100 lines of code
Cucumber is used for Behaviour Driven Development (BDD)
Jest is used as it fits in with React, was from my previous project, and has integrations with Puppeteer
Headless is disabled and delays are added so that we can see or demo things in action
Closes #64.
This tests that the app handles the sign in flow properly and the new graph launches successfully after that.