From 43bcd514523f3876ab1b8c31cfb1e63bc2ee1e75 Mon Sep 17 00:00:00 2001 From: rebuilt Date: Thu, 25 May 2023 10:31:11 -0700 Subject: [PATCH] Set credentials before switching to different district instead of after in the hopes the test will be less flaky when run in github actions --- spec/system/journey_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/journey_spec.rb b/spec/system/journey_spec.rb index a1b8f30c..e16cec52 100644 --- a/spec/system/journey_spec.rb +++ b/spec/system/journey_spec.rb @@ -140,7 +140,6 @@ describe 'District Admin', js: true do district_admin_sees_schools_change go_to_different_district(different_district) - page.driver.basic_authorize(different_district.short_name, "#{different_district.short_name}!") district_admin_sees_district_change go_to_different_year(ay_2019_20) @@ -184,6 +183,7 @@ def go_to_different_school_in_same_district(school) end def go_to_different_district(district) + page.driver.basic_authorize(different_district.short_name, "#{different_district.short_name}!") select district.name, from: 'select-district' end