Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9d766d2e
Commit
9d766d2e
authored
Jan 11, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define QA project pages views / selectors
parent
ec94d906
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
app/views/projects/_new_project_fields.html.haml
app/views/projects/_new_project_fields.html.haml
+1
-1
qa/qa/page/project/new.rb
qa/qa/page/project/new.rb
+10
-8
No files found.
app/views/projects/_new_project_fields.html.haml
View file @
9d766d2e
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
-
if
current_user
.
can_select_namespace?
-
if
current_user
.
can_select_namespace?
.input-group-addon
.input-group-addon
=
root_url
=
root_url
=
f
.
select
:namespace_id
,
namespaces_options
(
namespace_id_from
(
params
)
||
:current_user
,
display_path:
true
,
extra_group:
namespace_id_from
(
params
)),
{},
{
class:
'select2 js-select-namespace'
,
tabindex:
1
}
=
f
.
select
:namespace_id
,
namespaces_options
(
namespace_id_from
(
params
)
||
:current_user
,
display_path:
true
,
extra_group:
namespace_id_from
(
params
)),
{},
{
class:
'select2 js-select-namespace
qa-project-namespace-select
'
,
tabindex:
1
}
-
else
-
else
.input-group-addon.static-namespace
.input-group-addon.static-namespace
...
...
qa/qa/page/project/new.rb
View file @
9d766d2e
...
@@ -2,16 +2,18 @@ module QA
...
@@ -2,16 +2,18 @@ module QA
module
Page
module
Page
module
Project
module
Project
class
New
<
Page
::
Base
class
New
<
Page
::
Base
##
view
'projects/_new_project_fields.html.haml'
do
# TODO, define all selectors required by this page object
element
:project_namespace_select
#
element
:project_namespace_field
,
'select :namespace_id'
# See gitlab-org/gitlab-qa#154
element
:project_path
,
'text_field :path'
#
element
:project_description
,
'text_area :description'
view
'app/views/projects/new.html.haml'
element
:project_create_button
,
"submit 'Create project'"
end
def
choose_test_namespace
def
choose_test_namespace
find
(
'#s2id_project_namespace_id'
).
click
click_element
:project_namespace_select
find
(
'.select2-result-label'
,
text:
Runtime
::
Namespace
.
name
).
click
first
(
'li'
,
text:
Runtime
::
Namespace
.
name
).
click
end
end
def
choose_name
(
name
)
def
choose_name
(
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment