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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
fc9ecdbb
Commit
fc9ecdbb
authored
Jan 09, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add QA views / selectors coupling to group/project pages
parent
b91b6418
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
qa/qa/page/dashboard/groups.rb
qa/qa/page/dashboard/groups.rb
+9
-0
qa/qa/page/dashboard/projects.rb
qa/qa/page/dashboard/projects.rb
+2
-0
qa/qa/page/group/new.rb
qa/qa/page/group/new.rb
+11
-0
qa/qa/page/view.rb
qa/qa/page/view.rb
+1
-1
No files found.
qa/qa/page/dashboard/groups.rb
View file @
fc9ecdbb
...
...
@@ -2,6 +2,15 @@ module QA
module
Page
module
Dashboard
class
Groups
<
Page
::
Base
view
'app/views/shared/groups/_search_form.html.haml'
do
element
:groups_filter
,
'search_field_tag :filter'
element
:groups_filter_placeholder
,
'Filter by name...'
end
view
'app/views/dashboard/_groups_head.html.haml'
do
element
:new_group_button
,
'link_to _("New group")'
end
def
filter_by_name
(
name
)
fill_in
'Filter by name...'
,
with:
name
end
...
...
qa/qa/page/dashboard/projects.rb
View file @
fc9ecdbb
...
...
@@ -2,6 +2,8 @@ module QA
module
Page
module
Dashboard
class
Projects
<
Page
::
Base
view
'app/views/dashboard/projects/index.html.haml'
def
go_to_project
(
name
)
find_link
(
text:
name
).
click
end
...
...
qa/qa/page/group/new.rb
View file @
fc9ecdbb
...
...
@@ -2,6 +2,17 @@ module QA
module
Page
module
Group
class
New
<
Page
::
Base
view
'app/views/shared/_group_form.html.haml'
do
element
:group_path_field
,
'text_field :path'
element
:group_name_field
,
'text_field :name'
element
:group_description_field
,
'text_area :description'
end
view
'app/views/groups/new.html.haml'
do
element
:create_group_button
,
"submit 'Create group'"
element
:visibility_radios
,
'visibility_level:'
end
def
set_path
(
path
)
fill_in
'group_path'
,
with:
path
fill_in
'group_name'
,
with:
path
...
...
qa/qa/page/view.rb
View file @
fc9ecdbb
...
...
@@ -35,7 +35,7 @@ module QA
def
self
.
evaluate
(
&
block
)
Page
::
View
::
DSL
.
new
.
tap
do
|
evaluator
|
evaluator
.
instance_exec
(
&
block
)
evaluator
.
instance_exec
(
&
block
)
if
block_given?
end
end
...
...
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