summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-01-29 12:51:48 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-01-29 12:51:48 +0000
commit9e408ae8cc72608524298743347a6f3ed6471020 (patch)
treecab5c460f79a56aca4c0fdefd8db8dfa7abc5134
parentca9a6ef3a13ce7124249e81198edb1ed7ed771d1 (diff)
parent428db24a033ff9c145405286481d682701698a49 (diff)
downloadgitlab-ce-9e408ae8cc72608524298743347a6f3ed6471020.tar.gz
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
-rw-r--r--qa/qa/page/project/new.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/page/project/new.rb b/qa/qa/page/project/new.rb
index 9b1438f76d5..186a4724326 100644
--- a/qa/qa/page/project/new.rb
+++ b/qa/qa/page/project/new.rb
@@ -4,7 +4,7 @@ module QA
class New < Page::Base
view 'app/views/projects/_new_project_fields.html.haml' do
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_description, 'text_area :description'
element :project_create_button, "submit 'Create project'"
@@ -13,7 +13,7 @@ module QA
def choose_test_namespace
click_element :project_namespace_select
- first('li', text: Runtime::Namespace.path).click
+ find('ul.select2-result-sub > li', text: Runtime::Namespace.path).click
end
def choose_name(name)