Include the searched term in the search input form

This commit is contained in:
taitus
2020-12-03 09:02:51 +01:00
committed by Javi Martín
parent 427dec8cbd
commit 7b6294199c
5 changed files with 9 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ describe "Admin valuators", :admin do
click_button "Search"
expect(page).to have_content("Valuators: User search")
expect(page).to have_field "name_or_email", with: "Foster"
expect(page).to have_content(valuator1.name)
expect(page).not_to have_content(valuator2.name)
end
@@ -101,6 +102,7 @@ describe "Admin valuators", :admin do
click_button "Search"
expect(page).to have_content("Valuators: User search")
expect(page).to have_field "name_or_email", with: valuator2.email
expect(page).to have_content(valuator2.email)
expect(page).not_to have_content(valuator1.email)
end