From 863f70044bec03482f44a902d476482bed79c17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 23 Mar 2021 18:32:37 +0100 Subject: [PATCH] Fix test trying to set a wrong date The line `fill_in "advanced_search_date_max", with: "wrong date"` doesn't work because the jQuery UI datepicker prevents users from entering that value. --- spec/system/advanced_search_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/advanced_search_spec.rb b/spec/system/advanced_search_spec.rb index d02d723bd..24dfc3361 100644 --- a/spec/system/advanced_search_spec.rb +++ b/spec/system/advanced_search_spec.rb @@ -295,7 +295,7 @@ describe "Advanced search", :js do click_link "Advanced search" select "Customized", from: "js-advanced-search-date-min" fill_in "advanced_search_date_min", with: 4000.years.ago.strftime("%d/%m/%Y") - fill_in "advanced_search_date_max", with: "wrong date" + fill_in "advanced_search_date_max", with: "13/13/2199" click_button "Filter" expect(page).to have_content("There are 3 citizen proposals")