diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index 17d1d49a21..72584d5de7 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -103,7 +103,9 @@ feature "As a consumer I want to shop with a distributor", js: true do within("li.cart") { page.should have_content with_currency(1020.99) } # -- Changing order cycle - select "frogs", from: "order_cycle_id" + accept_alert do + select "frogs", from: "order_cycle_id" + end page.should have_content with_currency(19.99) # -- Cart should be cleared