Skip to content

Commit b00fcfe

Browse files
committed
Fix flaky specs due to lack of assertions
We were optimistically assuming that the page has already loaded and this was causing some flaky specs.
1 parent 5550c2f commit b00fcfe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

templates/spec/system/authentication/checkout_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@
121121
create(:user, email: 'email@person.com', password: 'password', password_confirmation: 'password')
122122
click_link 'Solidus hoodie'
123123
click_button 'Add To Cart'
124+
expect(page).to have_text 'Shopping Cart'
124125

125126
visit login_path
126127
click_link 'Forgot Password?'
127128
fill_in 'spree_user_email', with: 'email@person.com'
128129
click_button 'Reset my password'
130+
expect(page).to have_text('If an account with that email address exists')
129131

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

0 commit comments

Comments
 (0)