Skip to content

Commit b5faaa4

Browse files
committed
Make sign in spec more stable
This spec is very flaky. Let's use some more page content expectations to give Capybara time to find the elements
1 parent 6e27413 commit b5faaa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/features/spree/sign_in_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,11 @@
245245
# Logout
246246
click_link 'Logout'
247247

248+
expect(page).to have_content "Signed out successfully"
249+
248250
# Step 2: As a guest, add a product to the cart with quantity 2
249251
visit spree.product_path(@product)
252+
expect(page).to have_field "quantity"
250253
fill_in 'quantity', with: 2
251254
find('#add-to-cart-button').click
252255

0 commit comments

Comments
 (0)