Rename 'Dashboard' to overview in page text and also modify 'dashboard' routes to be 'overview'. Finishes #180076071

This commit is contained in:
Nelson Jovel 2021-12-14 13:20:18 +01:00
parent 2753888f11
commit f553c3c11c
19 changed files with 34 additions and 34 deletions

View file

@ -10,7 +10,7 @@ describe 'authentication' do
page.driver.browser.basic_authorize('wrong username', 'wrong password')
end
it 'does not show any information' do
visit dashboard_path
visit overview_path
expect(page).not_to have_text(school.name)
end
@ -21,7 +21,7 @@ describe 'authentication' do
page.driver.browser.basic_authorize(username, password)
end
it 'does show information' do
visit dashboard_path
visit overview_path
expect(page).to have_text(school.name)
end
@ -37,7 +37,7 @@ describe 'authentication' do
"#{username}!"
end
def dashboard_path
district_school_dashboard_index_path(district, school, year: academic_year.range)
def overview_path
district_school_overview_index_path(district, school, year: academic_year.range)
end
end

View file

@ -65,15 +65,15 @@ describe 'District Admin', js: true do
visit '/welcome'
expect(page).to have_text("Teachers & Leadership")
go_to_school_dashboard_from_welcome_page(district, school)
go_to_school_overview_from_welcome_page(district, school)
district_admin_sees_dashboard_content
district_admin_sees_overview_content
click_on 'Teachers & Leadership'
district_admin_sees_browse_content
click_on 'Dashboard'
district_admin_sees_dashboard_content
click_on 'Overview'
district_admin_sees_overview_content
click_on 'Browse'
district_admin_sees_browse_content
@ -106,7 +106,7 @@ def district_admin_sees_problem_solving_emphasis
expect(page).to have_css("[data-for-measure-id='4C-i'][width='60.0%'][x='0.0%']")
end
def go_to_school_dashboard_from_welcome_page(district, school)
def go_to_school_overview_from_welcome_page(district, school)
select district.name, from: 'district-dropdown'
select school.name, from: 'school-dropdown'
click_on 'Go'
@ -125,8 +125,8 @@ def go_to_browse_page_for_school_without_data(school)
select school.name, from: 'select-school'
end
def go_to_dashboard_page_for_school_without_data(school)
click_on 'Dashboard'
def go_to_overview_page_for_school_without_data(school)
click_on 'Overview'
select school.name, from: 'select-school'
end
@ -140,7 +140,7 @@ def district_admin_sees_district_change
expect(page).to have_current_path(expected_path)
end
def district_admin_sees_dashboard_content
def district_admin_sees_overview_content
expect(page).to have_select('academic-year', selected: '2020 2021')
expect(page).to have_select('district', selected: 'Winchester')
expect(page).to have_select('school', selected: 'Winchester High School')

View file

@ -13,8 +13,8 @@ describe 'SQM Application' do
end
context 'when no measures meet their threshold' do
it 'shows a modal on dashboard page' do
visit dashboard_path
it 'shows a modal on overview page' do
visit overview_path
expect(page).to have_css '.modal'
end
@ -32,7 +32,7 @@ describe 'SQM Application' do
end
it 'does not show a modal on any page' do
[dashboard_path, browse_path].each do |path|
[overview_path, browse_path].each do |path|
visit path
expect(page).not_to have_css '.modal'
end
@ -49,8 +49,8 @@ describe 'SQM Application' do
"#{username}!"
end
def dashboard_path
district_school_dashboard_index_path(district, school, year: academic_year.range)
def overview_path
district_school_overview_index_path(district, school, year: academic_year.range)
end
def browse_path