diff --git a/spec/features/admin/poll/shifts_spec.rb b/spec/features/admin/poll/shifts_spec.rb index 8e02ca9b4..f10ce64d5 100644 --- a/spec/features/admin/poll/shifts_spec.rb +++ b/spec/features/admin/poll/shifts_spec.rb @@ -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"