Closed jonoliver closed 2 years ago
Project | apprentice-at |
Status | Passed |
Commit | 929dde48df |
Started | Feb 25, 2022 3:04 PM |
Ended | Feb 25, 2022 3:05 PM |
Duration | 01:28 💡 |
OS | Linux Ubuntu - 20.04 |
Browser | Custom chromium 90 |
View run in Cypress Dashboard ➡️
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard
Looks like we're getting actual form submissions come through when the Cypress tests run against the PR deployments in Netlify. We can see this in the
#sparkbox-com
channel on Slack. This PR usescy.intercept
to intercept the form post and stub the response by issuing a redirect to the/thank-you
page. This allows the test to exercise the form submission without actually submitting it.Validation
#sparkbox-com
after the tests run in CI.Then, when the form is submitted in the test, we should see that it's using the intercept:
: