Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Dec 19, 2024
1 parent dcef5eb commit 4059578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/lottery_entrants/update.turbo_stream.erb
Original file line number Diff line number Diff line change
@@ -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),
Expand Down
4 changes: 2 additions & 2 deletions spec/system/lotteries/withdraw_entrants_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4059578

Please sign in to comment.