From 8e27ace563e4eb72b71dd1a90047601ccc42b021 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 2 May 2020 20:16:41 +0100 Subject: [PATCH] Adapt specs where there is only one OC available to the absence of the OC selector --- spec/features/consumer/shopping/products_spec.rb | 4 ---- spec/features/consumer/shopping/shopping_spec.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/spec/features/consumer/shopping/products_spec.rb b/spec/features/consumer/shopping/products_spec.rb index 726346a9ed..0846845021 100644 --- a/spec/features/consumer/shopping/products_spec.rb +++ b/spec/features/consumer/shopping/products_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/features/consumer/shopping/shopping_spec.rb index bf849364c8..68f1aef4f1 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/features/consumer/shopping/shopping_spec.rb @@ -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