codefortulsa / website

Code For Tulsa Website Update 2022
https://www.figma.com/file/maf7XD1XhbIKlJn77P2tIS/Code-for-Tulsa-Website?node-id=0%3A1
8 stars 10 forks source link

Create cypress tests for blog spec #126

Closed laylark closed 2 years ago

laylark commented 2 years ago
zenlex commented 2 years ago

@laylark I think this looks great! Thanks for the tests! I am curious - did you build for production before you ran the tests or were you running them against the dev environment? I'm realizing I don't force a production build with the cypress script currently. If you were running the tests against the dev server I suspect that was the reason for the slow load times. Good catch. Either way I'll update that or add another script to run yarn build && yarn start && cypress run. Also curious if you were running it with the cypress UI or in headless mode? (There's scripts for both in the package.json if you didn't see them)