summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/import/github.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-08-23 15:21:06 -0700
committerStan Hu <stanhu@gmail.com>2018-08-24 10:29:14 -0700
commitf2005125dfe7810de910b61dee8d7a9203a6ca6e (patch)
tree292dbe52167f294d75e7637e60c521c02a0cdb4d /qa/qa/page/project/import/github.rb
parent842377ab3c5b80a3758ad8c36dc3358bd265bc10 (diff)
downloadgitlab-ce-f2005125dfe7810de910b61dee8d7a9203a6ca6e.tar.gz
Use slugs for default project path and sanitize names before import
Users importing from Bitbucket Cloud, Bitbucket Server, or GitHub often complained about getting failed imports due to 422 errors. This change ensures that project names are imported with names that are guaranteed to pass the regular expression validation. Part of #50021
Diffstat (limited to 'qa/qa/page/project/import/github.rb')
-rw-r--r--qa/qa/page/project/import/github.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/project/import/github.rb b/qa/qa/page/project/import/github.rb
index 36567927194..1a410a0f8a5 100644
--- a/qa/qa/page/project/import/github.rb
+++ b/qa/qa/page/project/import/github.rb
@@ -14,7 +14,7 @@ module QA
element :project_import_row, 'data: { qa: { repo_path: repo.full_name } }'
element :project_namespace_select
element :project_namespace_field, 'select_tag :namespace_id'
- element :project_path_field, 'text_field_tag :path, repo.name'
+ element :project_path_field, 'text_field_tag :path, sanitize_project_name(repo.name)'
element :import_button, "_('Import')"
end