Merge pull request #8381 from jibees/8328-fix-flaky-on-checkout_spec

(try to) fix flaky for spec/system/consumer/shopping/checkout_spec.rb
This commit is contained in:
Filipe
2021-10-20 09:23:49 +01:00
committed by GitHub

View File

@@ -313,8 +313,10 @@ describe "As a consumer I want to check out my cart", js: true do
it "checks out successfully" do
visit checkout_path
choose shipping_with_fee.name
choose check_without_fee.name
expect(page).to have_content "Shipping info"
find("input[value='#{shipping_with_fee.id}'").click
expect(page).to have_content "Payment"
find("input[value='#{check_without_fee.id}'").click
perform_enqueued_jobs do
place_order