From f4edfcefa27751f36a945a370c718a5e536c357f Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 4 Oct 2022 20:17:14 +0100 Subject: [PATCH] Adds 2 sec sleep time --- spec/system/consumer/shopping/shopping_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/consumer/shopping/shopping_spec.rb b/spec/system/consumer/shopping/shopping_spec.rb index c5a835f9be..dc8cafbf40 100644 --- a/spec/system/consumer/shopping/shopping_spec.rb +++ b/spec/system/consumer/shopping/shopping_spec.rb @@ -244,7 +244,7 @@ describe "As a consumer I want to shop with a distributor", js: true do context "filtering search results" do it "returns no results and clears searches by clicking the clear-link" do visit shop_path - expect(page).to have_content product2.name + sleep(2) fill_in "search", with: "74576345634XXXXXX" expect(page).to have_content "Sorry, no results found" expect(page).not_to have_content product2.name @@ -253,7 +253,7 @@ describe "As a consumer I want to shop with a distributor", js: true do end it "returns results and clears searches by clicking the clear-button" do visit shop_path - expect(page).to have_content product2.name + sleep(2) fill_in "search", with: "Meer" # For product named "Meercats" expect(page).to have_content product2.name expect(page).not_to have_content product.name