Set credentials before switching to different district instead of after in the hopes the test will be less flaky when run in github actions

pull/1/head
rebuilt 3 years ago
parent 87ca23df79
commit 43bcd51452

@ -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

Loading…
Cancel
Save