summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-11 13:54:33 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-11 13:54:33 +0100
commit9d766d2ecfa368d6d4dcfc298794e5706d4814b0 (patch)
treef27bb714aa52af18b260267e38f92ada4b56ca84 /qa
parentec94d906b7cb3e5854834e823318a32e161e30a0 (diff)
downloadgitlab-ce-9d766d2ecfa368d6d4dcfc298794e5706d4814b0.tar.gz
Define QA project pages views / selectors
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/new.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/qa/qa/page/project/new.rb b/qa/qa/page/project/new.rb
index a87313b2cb9..1f23de29642 100644
--- a/qa/qa/page/project/new.rb
+++ b/qa/qa/page/project/new.rb
@@ -2,16 +2,18 @@ module QA
module Page
module Project
class New < Page::Base
- ##
- # TODO, define all selectors required by this page object
- #
- # See gitlab-org/gitlab-qa#154
- #
- view 'app/views/projects/new.html.haml'
+ view 'projects/_new_project_fields.html.haml' do
+ element :project_namespace_select
+ element :project_namespace_field, 'select :namespace_id'
+ element :project_path, 'text_field :path'
+ element :project_description, 'text_area :description'
+ element :project_create_button, "submit 'Create project'"
+ end
def choose_test_namespace
- find('#s2id_project_namespace_id').click
- find('.select2-result-label', text: Runtime::Namespace.name).click
+ click_element :project_namespace_select
+
+ first('li', text: Runtime::Namespace.name).click
end
def choose_name(name)