Tiny Cypress E2E test case
Build status | Name | Description |
---|---|---|
CircleCI | Linux & Mac & Win 64 |
A Simple CRA webapp has been setup as an optional localhost page for testing though the example.cypress.io is also kept.
This Repo is to show the network degradation when running lighthouse tests against the cypress browser. As of 13.3.1 we've noticed a sharp increase in time to fetch resources with a minimum delay of 2 seconds. This impacts the performance scores massively
Lighthouse is run as spawn process that runs against the chrome browser using the browser dev port. This runs lighthouse in a new Tab. where it can easily manipulate the screen dimensions etc. Though we experience some network delay when doing this.
- clone project
- git clone git@github.com:metalix2/cypress-lighthouse-slow.git
- cd cypress-lighthouse-slow
- nvm use
- npm ci
- cd webapp in new tab
- npm ci
- npm run build
- npx serve ./build -p 5000 (y) if serve not installed.
- in original tab
- npm run cypress:perf
- Wait for tests to finish and check the .lighthouseci folder for results or check cypress logs.