From 8ac971651c6af9b36d476aeff14596e83e858523 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 22 May 2020 16:24:27 +0200 Subject: [PATCH] Fix flaky spec --- spec/features/consumer/shopping/shopping_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index 85b0a92873..b33657e6fd 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -121,7 +121,7 @@ feature "As a consumer I want to shop with a distributor", js: true do expect(page).not_to have_selector "tr.product-cart" within('product:not(.ng-leave)') { fill_in "variants[#{variant.id}]", with: 1 } - toggle_cart + wait_for_cart within(".cart-sidebar") { expect(page).to have_content with_currency(19.99) } end