-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(e2e/email): add form auth tests #5876
Conversation
2e4862a
to
6f7d17a
Compare
6f7d17a
to
2ff6f18
Compare
2ff6f18
to
b527c99
Compare
…goes to 1 retry, return bogus error codes to see what's causing 400
3711d2d
to
09bdd79
Compare
38334f4
to
eeb2863
Compare
…gus string for UIN
eeb2863
to
cce7761
Compare
Also, if you're reading this, please know that all the force pushes are there because I was trying to debug tests that were working fine locally but not in CI. It turns out that mockpass used |
do we want to add this to branch protection rules? doing release now and I realise I don't have to wait for these tests to pass to merge into |
Problem
When we initially migrated e2e tests to Playwright, mockpass was not compatible with our OIDC version. Thus, we omitted e2e tests for forms with authentication. Since mockpass has been updated, form authentication has been restored locally, and therefore we should restore these tests.
Solution
Added tests for SP, CP, SGID and MyInfo. Small adjustment to be made for the myinfoable types in
field.ts
.Had to upgrade node version for our CI to 18 to be compatible with mockpass.
Sorry about the lines changed metric, a large proportion of the changes made in
createForm
is just a giant refactor (to account for auth-ing the form with mockpass).Separately, I got annoyed with having to type legacy-peer-deps every time so i added it to .npmrc and updated the README.