j40-cejst-2/client/cypress
Vim 72d80a5803
Attempt to merge Lighthouse Fix branch from Nat (#758)
* Add a11y tests in cypress for methodology page

- update cypress to version 8.5
- add HTML lang the <head> element
- change process list headings to h4
- add alt tag to download image icon
- move <GovBanner> into <Header>
- add documentation around a11y testing

* Add cypress a11y tests for cejst page

- add alt icon for mapIntro page
- change legend to be a normal div
- add a class that mimics the h4 styles
- remove superfluous styles

* Add cypress a11y tests for contact and 404 page

* Update snapshots

* Move static text in footer to copy folder

* Add cypress a11y test to About page

- add required h1 tag
- updates snapshot

* Add site_url.xml and modify robots.txt file

- adds plugins for robots.txt and sitemap
- remove env.local and will add env.production
- modifiy all yml files (docker and GHA) to specify new env variables
- refactor env variables to either DATA_SOURCE, SITE_URL or PATH_PREFIX
- set defaults for env variables in gatsby-config
- remove timeline component
- will add blank index page
- update README on info on env variables

* Add plugin to allow custom env vars

- allows system env vars, ie, DATA_SOURCE on client-side application

* Update displayed URLs in GHA to new CDN (d29)

- also updates the blank index.html

* Correct spacing

* Set SITE_URL to new CDN for robots.txt

* Remove SITE_URL as this is set by GHA

* Update README around docker and env vars
2021-10-04 08:43:33 -07:00
..
fixtures Adding Cypress for e2e testing (#85) 2021-06-02 20:53:22 -04:00
integration Attempt to merge Lighthouse Fix branch from Nat (#758) 2021-10-04 08:43:33 -07:00
plugins Gherkin cypress spike (#673) 2021-09-15 12:06:13 -07:00
support Cypress tests are failing locally (#403) 2021-07-23 08:52:34 -04:00
README.md Cypress tests are failing locally (#403) 2021-07-23 08:52:34 -04:00

Cypress Tests

Debugging with VSCode

To debug Cypress tests:

  1. Open the client directory in vscode with code client
  2. In a terminal, run npm start to start the site
  3. In a separate terminal, run npm run cy:open to open cypress with the debug port set to 9222
  4. Open a target test from the list
  5. Create breakpoints in your test code and/or source
  6. Run the Debug Cypress command from the debug menu in VSCode