diff options
Diffstat (limited to 'qa/qa/specs/features')
8 files changed, 17 insertions, 17 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb index 3ce48de2c25..bde6c892a3d 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb @@ -43,7 +43,7 @@ module QA end def verify_repository_import - expect(page).to have_content('This test project is used for automated GitHub import by GitLab QA.') + expect(page).to have_content(_('This test project is used for automated GitHub import by GitLab QA.')) expect(page).to have_content(imported_project.name) end @@ -53,10 +53,10 @@ module QA click_link 'This is a sample issue' - expect(page).to have_content('We should populate this project with issues, pull requests and wiki pages.') + expect(page).to have_content(_('We should populate this project with issues, pull requests and wiki pages.')) # Comments - expect(page).to have_content('This is a comment from @rymai.') + expect(page).to have_content(_('This is a comment from @rymai.')) Page::Issuable::Sidebar.perform do |issuable| expect(issuable).to have_label('enhancement') @@ -71,13 +71,13 @@ module QA click_link 'Improve README.md' - expect(page).to have_content('This improves the README file a bit.') + expect(page).to have_content(_('This improves the README file a bit.')) # Review comment are not supported yet - expect(page).not_to have_content('Really nice change.') + expect(page).not_to have_content(_('Really nice change.')) # Comments - expect(page).to have_content('Nice work! This is a comment from @rymai.') + expect(page).to have_content(_('Nice work! This is a comment from @rymai.')) # Diff comments expect(page).to have_content('[Review comment] I like that!') @@ -103,7 +103,7 @@ module QA def verify_wiki_import Page::Project::Menu.act { click_wiki } - expect(page).to have_content('Welcome to the test-project wiki!') + expect(page).to have_content(_('Welcome to the test-project wiki!')) end end end diff --git a/qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb b/qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb index e2d639fd150..26699de13fb 100644 --- a/qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb +++ b/qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb @@ -23,7 +23,7 @@ module QA Resource::Repository::ProjectPush.fabricate! do |push| push.project = project push.file_name = "other.txt" - push.file_content = "New file added!" + push.file_content = _("New file added!") push.branch_name = "master" push.new_branch = false end diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb index de5c535c757..88d6969791b 100644 --- a/qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb +++ b/qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb @@ -74,7 +74,7 @@ module QA Page::File::Form.perform(&:commit_changes) - expect(page).to have_content('The file has been successfully created.') + expect(page).to have_content(_('The file has been successfully created.')) expect(page).to have_content(template[:file_name]) expect(page).to have_content('Add new file') expect(page).to have_content(content[0..100]) diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb index 0f0c627d79a..b339db3821b 100644 --- a/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb +++ b/qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb @@ -78,7 +78,7 @@ module QA Page::Project::Branches::Show.perform(&:delete_merged_branches) expect(page).to have_content( - 'Merged branches are being deleted. This can take some time depending on the number of branches. Please refresh the page to see changes.' + _('Merged branches are being deleted. This can take some time depending on the number of branches. Please refresh the page to see changes.') ) page.refresh diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/create_edit_delete_file_via_web_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/create_edit_delete_file_via_web_spec.rb index 46346d1b984..342265d0f9c 100644 --- a/qa/qa/specs/features/browser_ui/3_create/repository/create_edit_delete_file_via_web_spec.rb +++ b/qa/qa/specs/features/browser_ui/3_create/repository/create_edit_delete_file_via_web_spec.rb @@ -18,7 +18,7 @@ module QA file.commit_message = commit_message_for_create end - expect(page).to have_content('The file has been successfully created.') + expect(page).to have_content(_('The file has been successfully created.')) expect(page).to have_content(file_name) expect(page).to have_content(file_content) expect(page).to have_content(commit_message_for_create) @@ -36,7 +36,7 @@ module QA commit_changes end - expect(page).to have_content('Your changes have been successfully committed.') + expect(page).to have_content(_('Your changes have been successfully committed.')) expect(page).to have_content(updated_file_content) expect(page).to have_content(commit_message_for_update) @@ -49,7 +49,7 @@ module QA click_delete_file end - expect(page).to have_content('The file has been successfully deleted.') + expect(page).to have_content(_('The file has been successfully deleted.')) expect(page).to have_content(commit_message_for_delete) expect(page).to have_no_content(file_name) end diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb index 25cbe41c684..0ccfc516727 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb @@ -15,7 +15,7 @@ module QA project = Resource::Project.fabricate! do |project| project.name = 'project-with-pipelines' - project.description = 'Project with CI/CD Pipelines.' + project.description = _('Project with CI/CD Pipelines.') end Resource::Runner.fabricate! do |runner| diff --git a/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb b/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb index e2320c92343..e2e2404dbd7 100644 --- a/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb +++ b/qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb @@ -99,7 +99,7 @@ module QA job.completed? && !job.trace_loading? end - expect(job.passed?).to be_truthy, "Job status did not become \"passed\"." + expect(job.passed?).to be_truthy, _("Job status did not become \"passed\".") expect(job.output).to include(sha1sum) end end diff --git a/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb b/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb index 5147b17d7ab..777cad4f047 100644 --- a/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb +++ b/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb @@ -85,7 +85,7 @@ module QA end Page::Project::Operations::Environments::Show.perform do |show| show.view_deployment do - expect(page).to have_content('Hello World!') + expect(page).to have_content(_('Hello World!')) end end end @@ -127,7 +127,7 @@ module QA Page::Project::Operations::Environments::Show.perform do |show| show.view_deployment do - expect(page).to have_content('Hello World!') + expect(page).to have_content(_('Hello World!')) expect(page).to have_content('You can see this application secret') end end |