Skip to content
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 expectations in tests confirming account #5037

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

javierm
Copy link
Member

@javierm javierm commented Nov 28, 2022

References

Objectives

  • Reduce the number of possible reasons why the test failed once in our CI
  • (Maybe) Fix the reason why the test failed once in our CI

@javierm javierm self-assigned this Nov 28, 2022
@@ -392,6 +392,9 @@

fill_in "Username", with: "manuela2"
click_button "Register"

expect(page).to have_content "To continue, please click on the confirmation link that we have sent you via email"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [121/110] (https://rubystyle.guide#max-line-length)

@javierm javierm added the 2.0 label Nov 28, 2022
@javierm javierm changed the title Add test expectations before confirming account Add expectations in tests confirming account Nov 28, 2022
One of these tests has failed once because there wasn't a user with the
right confirmation token. While I haven't been able to reproduce the
issue, there's a chance it's caused by a `visit` call to the
confirmation path which might start before the redirect request to the
successful sign up page has finished.

I'm not sure this is the case, though, but, worst case scenario, if the
test fails again we'll know it isn't because of a missing expectation.
@taitus taitus self-assigned this Nov 28, 2022
@javierm javierm merged commit a400e4b into master Nov 28, 2022
@javierm javierm deleted the confirm_email_expectations branch November 28, 2022 14:52
@javierm javierm removed the 2.0 label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants