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

@@ -83,6 +83,7 @@ describe "Admin administrators" do
click_button "Search"
expect(page).to have_content("Administrators: User search")
expect(page).to have_field "name_or_email", with: "Sumn"
expect(page).to have_content(administrator1.name)
expect(page).not_to have_content(administrator2.name)
end
@@ -95,6 +96,7 @@ describe "Admin administrators" do
click_button "Search"
expect(page).to have_content("Administrators: User search")
expect(page).to have_field "name_or_email", with: administrator2.email
expect(page).to have_content(administrator2.email)
expect(page).not_to have_content(administrator1.email)
end