-
Notifications
You must be signed in to change notification settings - Fork 479
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
Add UI tests for users who sign up through /join/:section_code #38225
Conversation
And I type "#{password}" into "#user_password" | ||
And I type "#{password}" into "#user_password_confirmation" | ||
And I select the "#{age}" option in dropdown "user_age" | ||
And I click selector ".btn.btn-primary" once I see it |
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.
@drew-beckmen I would suggest trying one of the steps with the "to load a new page" clause Otherwise, it can lead to problems if the next step runs before the navigation happens.
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.
Thank you @davidsbailey!
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.
Thank you for adding these tests! This looks good to me (assuming Dave's comment gets addressed).
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.
Thanks for filling in this gap in the testing!
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.
Could you add a link to the Jira ticket in the PR description? Thanks!
This PR includes two UI tests to validate the behavior of the sign up form users hit at
/join/:section_code
when they are not yet signed in/registered users. Our lack of test coverage in this area was highlighted by a bug I introduced last week (details in the Slack thread). These tests allow us to verify the sign up workflow for users who submit both valid and invalid inputs into the sign up form.Testing story
Ran UI tests locally.
Links
Reviewer Checklist: