From 8a49178311c118f85174d6e20e55e0d9b4594488 Mon Sep 17 00:00:00 2001 From: Alex Basson Date: Wed, 20 Oct 2021 10:28:18 -0400 Subject: [PATCH] Use Rack::Test for feature spec to improve stability --- spec/features/school_dashboard_feature_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/school_dashboard_feature_spec.rb b/spec/features/school_dashboard_feature_spec.rb index 3e07d600..96baa2ea 100644 --- a/spec/features/school_dashboard_feature_spec.rb +++ b/spec/features/school_dashboard_feature_spec.rb @@ -145,8 +145,8 @@ feature 'School dashboard', type: feature do district_admin_sees_district_change end - scenario 'District Admin views a school dashboard', js: true do - page.driver.basic_authorize(username, password) + scenario 'District Admin views a school dashboard' do + page.driver.browser.basic_authorize(username, password) visit "/districts/#{district.slug}/schools/#{school.slug}/dashboard?year=#{ay_2020_21.range}"