mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 15:08:15 -07:00
Set credentials before switching to different district instead of after in the hopes the test will be less flaky when run in github actions
This commit is contained in:
parent
87ca23df79
commit
43bcd51452
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue