Change seed to load before each test vs before all.

pull/1/head
rebuilt 2 years ago
parent 22d22ab5ee
commit 836f0d1a62

@ -57,7 +57,7 @@ describe "District Admin", js: true do
respondent.save
end
before do
before :each do
Rails.application.load_seed
respondents
@ -102,10 +102,6 @@ describe "District Admin", js: true do
SurveyItemResponse.import survey_item_responses
end
after do
DatabaseCleaner.clean
end
it "navigates through the site" do
page.driver.basic_authorize(username, password)
@ -192,8 +188,6 @@ def go_to_different_year(year)
select year.formatted_range, from: "select-academic-year"
end
def got_to_analyze_page; end
def district_admin_sees_schools_change
expected_path = "/districts/#{school_in_same_district.district.slug}/schools/#{school_in_same_district.slug}/browse/teachers-and-leadership?year=#{ay_2021_22.range}"
expect(page).to have_current_path(expected_path)

Loading…
Cancel
Save