Commit ccb9ac29 authored by Stan Hu's avatar Stan Hu

Fix QA builds failing due to change in new project page behavior

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21386 re-introduced
the explicit creation of the project name separate from the project path.
Filling in the name does automatically populate the path, but the reverse
is not true. We now fill in the name instead of the path.

Closes https://gitlab.com/gitlab-org/gitlab-qa/issues/322
parent 98a5413d
...@@ -11,6 +11,7 @@ module QA ...@@ -11,6 +11,7 @@ module QA
view 'app/views/projects/_new_project_fields.html.haml' do view 'app/views/projects/_new_project_fields.html.haml' do
element :project_namespace_select element :project_namespace_select
element :project_namespace_field, 'namespaces_options' element :project_namespace_field, 'namespaces_options'
element :project_name, 'text_field :name'
element :project_path, 'text_field :path' element :project_path, 'text_field :path'
element :project_description, 'text_area :description' element :project_description, 'text_area :description'
element :project_create_button, "submit 'Create project'" element :project_create_button, "submit 'Create project'"
...@@ -32,7 +33,7 @@ module QA ...@@ -32,7 +33,7 @@ module QA
end end
def choose_name(name) def choose_name(name)
fill_in 'project_path', with: name fill_in 'project_name', with: name
end end
def add_description(description) def add_description(description)
......
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