mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
Adapt specs where there is only one OC available to the absence of the OC selector
This commit is contained in:
@@ -30,8 +30,6 @@ feature "As a consumer I want to view products", js: true do
|
||||
product.save!
|
||||
|
||||
visit shop_path
|
||||
select "monday", from: "order_cycle_id"
|
||||
|
||||
expect(page).to have_content product.name
|
||||
click_link product.name
|
||||
|
||||
@@ -48,8 +46,6 @@ feature "As a consumer I want to view products", js: true do
|
||||
product.save!
|
||||
|
||||
visit shop_path
|
||||
select "monday", from: "order_cycle_id"
|
||||
|
||||
expect(page).to have_content product.name
|
||||
click_link product.name
|
||||
|
||||
|
||||
@@ -209,8 +209,6 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
|
||||
it "filters search results properly" do
|
||||
visit shop_path
|
||||
select "frogs", from: "order_cycle_id"
|
||||
|
||||
fill_in "search", with: "74576345634XXXXXX"
|
||||
expect(page).to have_content "Sorry, no results found"
|
||||
expect(page).not_to have_content product2.name
|
||||
@@ -222,8 +220,6 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
|
||||
it "returns search results for products where the search term matches one of the product's variant names" do
|
||||
visit shop_path
|
||||
select "frogs", from: "order_cycle_id"
|
||||
|
||||
fill_in "search", with: "Badg" # For variant with display_name "Badgers"
|
||||
|
||||
within('div.pad-top') do
|
||||
|
||||
Reference in New Issue
Block a user