From 4c2a299510fe440c38524fc6ac1da0ed380ce16e Mon Sep 17 00:00:00 2001 From: rebuilt Date: Thu, 15 Dec 2022 09:19:18 -0800 Subject: [PATCH] Fix hotwire test --- app/views/home/index.html.erb | 2 +- spec/system/journey_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 617adf9b..fa721f80 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -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 %> diff --git a/spec/system/journey_spec.rb b/spec/system/journey_spec.rb index 234a1498..1173dbc8 100644 --- a/spec/system/journey_spec.rb +++ b/spec/system/journey_spec.rb @@ -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