Adapt specs where there is only one OC available to the absence of the OC selector

This commit is contained in:
Luis Ramos
2020-05-02 20:16:41 +01:00
parent b92e257e44
commit 8e27ace563
2 changed files with 0 additions and 8 deletions

View File

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

View File

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