Skip to content

Commit 5ddc1ac

Browse files
authored
Merge pull request #259 from SuperGoodSoft/senem/fix-flakey-checkout-spec
Address checkout spec race conditions
2 parents 6b00723 + 2a16e36 commit 5ddc1ac

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spec/features/checkout_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@
6363
fill_addresses_fields_with(address)
6464
click_button 'Save and Continue'
6565

66+
expect(page).to have_content 'UPS Ground'
67+
6668
click_button 'Save and Continue'
69+
70+
expect(page).to have_content(/Payment Information/i)
71+
6772
click_button 'Save and Continue'
6873
click_button 'Place Order'
6974

@@ -89,7 +94,12 @@
8994
fill_addresses_fields_with(address)
9095
click_button 'Save and Continue'
9196

97+
expect(page).to have_content 'UPS Ground'
98+
9299
click_button 'Save and Continue'
100+
101+
expect(page).to have_content(/Payment Information/i)
102+
93103
click_button 'Save and Continue'
94104
click_button 'Place Order'
95105

@@ -145,9 +155,15 @@
145155
expect(page).to have_text 'You have signed up successfully.'
146156

147157
fill_addresses_fields_with(address)
158+
148159
click_button 'Save and Continue'
149160

161+
expect(page).to have_content 'UPS Ground'
162+
150163
click_button 'Save and Continue'
164+
165+
expect(page).to have_content(/Payment Information/i)
166+
151167
click_button 'Save and Continue'
152168
click_button 'Place Order'
153169

0 commit comments

Comments
 (0)