Update shopping_spec to work with Selenium

This commit is contained in:
Rob Harrington
2018-06-01 08:21:47 +10:00
committed by luisramos0
parent 1923c0dbc6
commit bbaf6359f3

View File

@@ -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