fix shifts_spec
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user