Commit c4899356 authored by Brice Sanchez's avatar Brice Sanchez Committed by Brice Sanchez
Browse files

Update search page spec to test query with and without accents

parent 193c0fbf
......@@ -50,12 +50,18 @@ module Refinery
visit refinery.admin_pages_path
end
it "returns found page" do
it "returns found page without accents in the query" do
fill_in "search", :with => "Telephone"
click_button "Search"
expect(page).to have_content("Téléphone")
end
it "returns found page with accents in the query" do
fill_in "search", :with => "Téléphone"
click_button "Search"
expect(page).to have_content("Téléphone")
end
it_behaves_like "no result search"
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment