Skip to content

Commit fa0b6c2

Browse files
committed
Checkout spec: Wait for mail delivery
This spec was flaky before, because it did not wait for the page to have any changes.
1 parent 4c9e49e commit fa0b6c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/features/checkout_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
click_link "Forgot Password?"
118118
fill_in "spree_user_email", with: "email@person.com"
119119
click_button "Reset my password"
120+
expect(page).to have_content("you will receive an email with instructions")
120121

121122
# Need to do this now because the token stored in the DB is the encrypted version
122123
# The 'plain-text' version is sent in the email and there's one way to get that!

0 commit comments

Comments
 (0)