Commit a9cb3d54 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '214660_use_translated_strings_in_specs' into 'master'

Change group_overview feature specs to use translated strings

Closes #214660

See merge request gitlab-org/gitlab!29772
parents 8e4aca65 e2de17f7
...@@ -20,9 +20,9 @@ describe 'Group overview', :js, :aggregate_failures do ...@@ -20,9 +20,9 @@ describe 'Group overview', :js, :aggregate_failures do
visit_page visit_page
page.within(find('.content')) do page.within(find('.content')) do
expect(page).to have_content 'Subgroups and projects' expect(page).to have_content _('Subgroups and projects')
expect(page).to have_content 'Shared projects' expect(page).to have_content _('Shared projects')
expect(page).to have_content 'Archived projects' expect(page).to have_content _('Archived projects')
end end
end end
end end
...@@ -50,16 +50,16 @@ describe 'Group overview', :js, :aggregate_failures do ...@@ -50,16 +50,16 @@ describe 'Group overview', :js, :aggregate_failures do
expect(page).to have_selector('.js-security-dashboard-table') expect(page).to have_selector('.js-security-dashboard-table')
page.within(find('aside')) do page.within(find('aside')) do
expect(page).to have_content 'Vulnerabilities over time' expect(page).to have_content _('Vulnerabilities over time')
expect(page).to have_selector('.js-vulnerabilities-chart-time-info') expect(page).to have_selector('.js-vulnerabilities-chart-time-info')
expect(page).to have_selector('.js-vulnerabilities-chart-severity-level-breakdown') expect(page).to have_selector('.js-vulnerabilities-chart-severity-level-breakdown')
expect(page).to have_content 'Project security status' expect(page).to have_content _('Project security status')
expect(page).to have_selector('.js-projects-security-status') expect(page).to have_selector('.js-projects-security-status')
end end
page.within(all('div.row')[1]) do page.within(all('div.row')[1]) do
expect(page).not_to have_content 'Detected' expect(page).not_to have_content s_('VulnerabilityStatusTypes|Detected')
end end
end end
end end
...@@ -73,8 +73,8 @@ describe 'Group overview', :js, :aggregate_failures do ...@@ -73,8 +73,8 @@ describe 'Group overview', :js, :aggregate_failures do
visit_page visit_page
page.within(all('div.row')[1]) do page.within(all('div.row')[1]) do
expect(page).to have_content 'Detected' expect(page).to have_content s_('VulnerabilityStatusTypes|Detected')
expect(page).to have_content 'Severity' expect(page).to have_content s_('Vulnerability|Severity')
end end
end end
end end
...@@ -87,9 +87,9 @@ describe 'Group overview', :js, :aggregate_failures do ...@@ -87,9 +87,9 @@ describe 'Group overview', :js, :aggregate_failures do
visit_page visit_page
page.within(find('.content')) do page.within(find('.content')) do
expect(page).to have_content "Either you don't have permission to view this dashboard or "\ expect(page).to have_content s_("Security Reports|Either you don't have permission to view this dashboard or "\
'the dashboard has not been setup. Please check your permission settings '\ 'the dashboard has not been setup. Please check your permission settings '\
'with your administrator or check your dashboard configurations to proceed.' 'with your administrator or check your dashboard configurations to proceed.')
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment