Closed marktnoonan closed 1 year ago
Someone is attempting to deploy a commit to a Personal Account owned by @TechIsHiring on Vercel.
@TechIsHiring first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
techishiring-website | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 21, 2023 0:09am |
Description
Related Issue
Resolves: #152
Motivation and Context
I realized when we set up component testing, we did not set it to run in GitHub Actions for this project. Also in talking with Chad we decided to set up a Cypress Cloud project to help with test times by running things in parallel. This also gives us a place to review results and assets like videos/screenshots from tests.
The Cloud integration will fail until we set a CYPRESS_RECORD_KEY environment variable in this repository. This run was recorded against my fork of this project.
Additionally I've made a couple of other changes around the testing setup, lets go through them file by file:
code-quality.yml
cypress-install
step job, needed for parallelization - it runsnpm ci
and provides a common starting point for the parallel runs.wait-on: 'http://localhost:3000'
to ensure Next dev server has properly stood up before e2e testing begins.cypress-run-component
job and renamecypress-run
tocypress-run-e2e
, and give each one a matchinggroup
. This allows results from the two separate sets of test to be merged in a single "run" within Cypress.GITHUB_TOKEN
andCYPRESS_RECORD_KEY
. We must add theCYPRESS_RECORD_KEY
for the project, but theGITHUB_TOKEN
is provided automatically when the action runs - we do not need anybody to generate a github authentication token.cypress.config.ts
visit
ed URL.cypress/e2e/contactuspage.cy.ts
andcypress/e2e/contactuspage.cy.ts
Remove
http://localhost:3000
from tests, as that is now configured as thebaseUrl
for this project.package.json
Update Cypress to the latest version.
How Has This Been Tested?
Here is an example run showing the e2e and component tests have both run, and been parallelized and recorded to Cypress Cloud.
Screenshots (if appropriate):
Run information in Cypress cloud.