Fix hotwire test

This commit is contained in:
rebuilt 2022-12-15 09:19:18 -08:00
parent b884021f66
commit 4c2a299510
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,7 @@
turbo_frame: "schools",
turbo_action: "advance",
controller: "form",
action: "input->form#submit"
action: "change->form#submit"
}) do |f| %>
<%= turbo_frame_tag "schools" do %>

View file

@ -166,9 +166,8 @@ def go_to_school_overview_from_welcome_page(district, school)
expect(page).to have_select('district', selected: 'Select a District')
select district.name, from: 'district-dropdown'
expect(page).to have_select('school', selected: 'Select a School')
visit welcome_path({ district: district.id, school: school.id })
expect(page).to have_select('school', selected: 'Winchester High School')
select school.name, from: 'school-dropdown'
expect(page).to have_select('school', selected: 'Winchester High School')
click_on 'Go'
end