fix shifts_spec

This commit is contained in:
DenisNikolski
2019-09-13 11:37:02 +03:00
parent 6f085b5696
commit 54c4a8d34b

View File

@@ -48,6 +48,8 @@ describe "Admin shifts" do
click_link "Manage shifts"
end
expect(page).to have_content "git This booth has no shifts"
fill_in "search", with: officer.email
click_button "Search"
click_link "Edit shifts"
@@ -72,6 +74,8 @@ describe "Admin shifts" do
click_link "Manage shifts"
end
expect(page).to have_css(".shift", count: 1)
fill_in "search", with: officer.email
click_button "Search"
click_link "Edit shifts"
@@ -115,6 +119,8 @@ describe "Admin shifts" do
click_link "Manage shifts"
end
expect(page).to have_css(".shift", count: 2)
fill_in "search", with: officer.email
click_button "Search"
click_link "Edit shifts"
@@ -154,6 +160,8 @@ describe "Admin shifts" do
click_link "Manage shifts"
end
expect(page).to have_content "This booth has no shifts"
fill_in "search", with: officer.email
click_button "Search"
click_link "Edit shifts"