From bbaf6359f3f4a44ff4839702b557f2db8966a38e Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 1 Jun 2018 08:21:47 +1000 Subject: [PATCH] Update shopping_spec to work with Selenium --- spec/features/consumer/shopping/shopping_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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