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