Fix problematic feature specs

This commit is contained in:
Matt-Yorkley
2019-10-04 18:25:04 +01:00
parent c54cff10d4
commit dd6d0d25da

View File

@@ -32,7 +32,9 @@ feature "As a consumer I want to view products", js: true do
visit shop_path
select "monday", from: "order_cycle_id"
expect(page).to have_content product.name
click_link product.name
expect(page).to have_selector '.reveal-modal'
modal_should_be_open_for product
@@ -48,7 +50,9 @@ feature "As a consumer I want to view products", js: true do
visit shop_path
select "monday", from: "order_cycle_id"
expect(page).to have_content product.name
click_link product.name
expect(page).to have_selector '.reveal-modal'
modal_should_be_open_for product