-
Notifications
You must be signed in to change notification settings - Fork 25
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: add autofill cypress test #4607
base: main
Are you sure you want to change the base?
Conversation
…d some cy.wait() to pass tests
…o be after step 11
✅ Deploy Preview for partners-bloom-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for bloom-exygy-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for partners-bloom-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for bloom-exygy-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ing/bloom into 3385/cypress-autofill
] as ApplicationMultiselectQuestion[], | ||
} | ||
|
||
export const autofillBlueSkyApplication: Application = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: the purpose of this is a. some fields are not autofilled, b. blue sky has different fields than elm village and c. the summary checks against the mock data
cy.getByTestId("app-alternate-first-name").type(application.alternateContact.firstName) | ||
cy.getByTestId("app-alternate-last-name").type(application.alternateContact.lastName) | ||
} else { | ||
cy.wait(1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: i could not get some steps to work on autofill without using cy.wait(). Open to other solutions but this was the only one I tried that worked
|
||
cy.goNext() | ||
cy.checkErrorAlert("not.exist") | ||
cy.checkErrorMessages("not.exist") | ||
cy.isNextRouteValid("alternateContactInfo") | ||
|
||
if (autofill && application.householdMember.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I had tried using isNextRouteValid("alternateContactInfo", autofill ? 1 : 0) but I was only passing the test about 60-70% of the time. The error was always in the autofill app, in which the test was expecting to be on the step prior despite having already been on that step and pressing next.
Heya @adriencyberspace ! Do you mind filling out the PR template description? With some background on the goal here and any technical choices you made if there's any relevant ones. It doesn't have to be long. The "how can we test this" section is more self-explanatory on this one. |
This PR addresses #3385
Description
Please include a summary of the change and which issue(s) is addressed.
How Can This Be Tested/Reviewed?
Provide instructions so we can review, including any needed configuration, and the test cases that need to be QAd.
Author Checklist:
yarn generate:client
and/or created a migration when requiredReview Process: