Commit 9e408ae8 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'qa/mk-fix-new-project-namespace' into 'master'

[CE backport] Fix QA new project creation click on incorrect namespace

See merge request gitlab-org/gitlab-ce!16736
parents ca9a6ef3 428db24a
...@@ -4,7 +4,7 @@ module QA ...@@ -4,7 +4,7 @@ module QA
class New < Page::Base class New < Page::Base
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, 'select :namespace_id' element :project_namespace_field, /select :namespace_id.*class: 'select2/
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'"
...@@ -13,7 +13,7 @@ module QA ...@@ -13,7 +13,7 @@ module QA
def choose_test_namespace def choose_test_namespace
click_element :project_namespace_select click_element :project_namespace_select
first('li', text: Runtime::Namespace.path).click find('ul.select2-result-sub > li', text: Runtime::Namespace.path).click
end end
def choose_name(name) def choose_name(name)
......
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