From 4059578d6ab886a5092e255e61fa514154a388eb Mon Sep 17 00:00:00 2001 From: moveson Date: Thu, 19 Dec 2024 16:57:39 -0700 Subject: [PATCH] Fix specs --- app/views/lottery_entrants/update.turbo_stream.erb | 4 ++-- spec/system/lotteries/withdraw_entrants_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)