diff --git a/app/views/lottery_entrants/update.turbo_stream.erb b/app/views/lottery_entrants/update.turbo_stream.erb index ea299c68e..26eb4ed1c 100644 --- a/app/views/lottery_entrants/update.turbo_stream.erb +++ b/app/views/lottery_entrants/update.turbo_stream.erb @@ -1,5 +1,5 @@ -<%= turbo_stream.replace dom_id(@lottery_entrant, :service_completed_indicator), - partial: "service_completed_indicator", +<%= turbo_stream.replace dom_id(@lottery_entrant, :service_status_indicator), + partial: "service_status_indicator", locals: { entrant: @lottery_entrant } %> <%= turbo_stream.replace dom_id(@lottery_entrant), diff --git a/spec/system/lotteries/withdraw_entrants_spec.rb b/spec/system/lotteries/withdraw_entrants_spec.rb index 22f3d5367..0b49ab744 100644 --- a/spec/system/lotteries/withdraw_entrants_spec.rb +++ b/spec/system/lotteries/withdraw_entrants_spec.rb @@ -48,7 +48,7 @@ input = page.find("##{dom_id(entrant, :service_completed_date_input)}") input.set("05/15/2023") input.native.send_keys(:tab) - within(page.find("##{dom_id(entrant, :service_completed_indicator)}")) do + within(page.find("##{dom_id(entrant, :service_status_indicator)}")) do expect(page).to have_css("i.fa-circle-check") end end.to change { entrant.reload.service_completed_date }.from(nil).to("2023-05-15".to_date) @@ -63,7 +63,7 @@ input = page.find("##{dom_id(entrant, :service_completed_date_input)}") input.set("") input.native.send_keys(:tab) - within(page.find("##{dom_id(entrant, :service_completed_indicator)}")) do + within(page.find("##{dom_id(entrant, :service_status_indicator)}")) do expect(page).to have_css("i.fa-circle-xmark") end end.to change { entrant.reload.service_completed_date }.from("2023-05-15".to_date).to(nil)