diff --git a/app/views/admin/poll/shifts/_shifts.html.erb b/app/views/admin/poll/shifts/_shifts.html.erb index 66d64ed22..51ceb731d 100644 --- a/app/views/admin/poll/shifts/_shifts.html.erb +++ b/app/views/admin/poll/shifts/_shifts.html.erb @@ -4,6 +4,7 @@ <%= t("admin.poll_shifts.new.date") %> <%= t("admin.poll_shifts.new.officer") %> + <%= t("admin.poll_shifts.new.table_email") %> <%= t("admin.poll_shifts.new.task") %> <%= t("admin.poll_shifts.new.shift") %> @@ -13,6 +14,7 @@ <%= l(shift.date.to_date, format: :long) %> <%= shift.officer_name %> + <%= shift.officer_email %> <%= t("admin.poll_shifts.#{shift.task}") %> <%= link_to t("admin.poll_shifts.new.remove_shift"), diff --git a/spec/features/admin/poll/shifts_spec.rb b/spec/features/admin/poll/shifts_spec.rb index 35efc2927..a4b1cbed9 100644 --- a/spec/features/admin/poll/shifts_spec.rb +++ b/spec/features/admin/poll/shifts_spec.rb @@ -22,12 +22,14 @@ feature "Admin shifts" do expect(page).to have_css(".shift", count: 1) expect(page).to have_content I18n.l(Date.current, format: :long) expect(page).to have_content officer.name + expect(page).to have_content officer.email visit new_admin_booth_shift_path(booth2) expect(page).to have_css(".shift", count: 1) expect(page).to have_content I18n.l(Time.zone.tomorrow, format: :long) expect(page).to have_content officer.name + expect(page).to have_content officer.email end scenario "Create Vote Collection Shift and Recount & Scrutiny Shift on same date", :js do @@ -229,6 +231,7 @@ feature "Admin shifts" do expect(page).to have_css(".shift", count: 1) expect(page).to have_content(officer.name) + expect(page).to have_content(officer.email) end scenario "Empty" do