summaryrefslogtreecommitdiff
path: root/spec/features/projects/jobs_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/jobs_spec.rb')
-rw-r--r--spec/features/projects/jobs_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index 8230396a4cc..18d788643ab 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -507,7 +507,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
let!(:environment) { create(:environment, name: 'staging', project: project) }
it 'shows deployment message' do
- expected_text = 'The deployment of this job to staging did not succeed.'
+ expected_text = _('The deployment of this job to staging did not succeed.')
expect(page).to have_css('.environment-information', text: expected_text)
end
@@ -616,7 +616,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
it 'shows delayed job', :js do
expect(page).to have_content('This is a delayed job to run in')
- expect(page).to have_content("This job will automatically run after its timer finishes.")
+ expect(page).to have_content(_("This job will automatically run after its timer finishes."))
expect(page).to have_link('Unschedule job')
end
@@ -708,7 +708,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
visit project_job_path(project, job)
expect(job).not_to have_trace
- expect(page).to have_content('This job does not have a trace.')
+ expect(page).to have_content(_('This job does not have a trace.'))
end
end
@@ -774,7 +774,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
it 'renders message about job being stuck because no runners are active' do
expect(page).to have_css('.js-stuck-no-active-runner')
- expect(page).to have_content("This job is stuck because you don't have any active runners that can run this job.")
+ expect(page).to have_content(_("This job is stuck because you don't have any active runners that can run this job."))
end
end
@@ -803,7 +803,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
it 'renders message about job being stuck because not runners are available' do
expect(page).to have_css('.js-stuck-no-active-runner')
- expect(page).to have_content("This job is stuck because you don't have any active runners that can run this job.")
+ expect(page).to have_content(_("This job is stuck because you don't have any active runners that can run this job."))
end
end
@@ -813,7 +813,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
it 'renders message about job being stuck because runners are offline' do
expect(page).to have_css('.js-stuck-no-runners')
- expect(page).to have_content("This job is stuck because the project doesn't have any runners online assigned to it.")
+ expect(page).to have_content(_("This job is stuck because the project doesn't have any runners online assigned to it."))
end
end
end