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
ca425ff2
Commit
ca425ff2
authored
Jan 19, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored view/element definition to dry up
parent
81f4eb36
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
qa/qa/page/menu/side.rb
qa/qa/page/menu/side.rb
+1
-0
qa/qa/page/project/settings/common.rb
qa/qa/page/project/settings/common.rb
+8
-0
qa/qa/page/project/settings/main.rb
qa/qa/page/project/settings/main.rb
+0
-1
qa/qa/page/project/settings/repository.rb
qa/qa/page/project/settings/repository.rb
+0
-1
No files found.
qa/qa/page/menu/side.rb
View file @
ca425ff2
...
...
@@ -4,6 +4,7 @@ module QA
class
Side
<
Page
::
Base
view
'app/views/layouts/nav/sidebar/_project.html.haml'
do
element
:settings_item
element
:settings_link
,
'link_to edit_project_path'
element
:repository_link
,
"title: 'Repository'"
element
:top_level_items
,
'.sidebar-top-level-items'
end
...
...
qa/qa/page/project/settings/common.rb
View file @
ca425ff2
...
...
@@ -3,6 +3,14 @@ module QA
module
Project
module
Settings
module
Common
def
self
.
included
(
base
)
base
.
class_eval
do
view
'app/views/projects/edit.html.haml'
do
element
:advanced_settings_expand
,
"= expanded ? 'Collapse' : 'Expand'"
end
end
end
def
expand_section
(
selector
)
page
.
within
(
selector
)
do
find_button
(
'Expand'
).
click
...
...
qa/qa/page/project/settings/main.rb
View file @
ca425ff2
...
...
@@ -7,7 +7,6 @@ module QA
view
'app/views/projects/edit.html.haml'
do
element
:advanced_settings_section
,
'%section.settings.advanced-settings'
element
:advanced_settings_expand
,
"= expanded ? 'Collapse' : 'Expand'"
end
def
expand_advanced_settings
(
&
block
)
...
...
qa/qa/page/project/settings/repository.rb
View file @
ca425ff2
...
...
@@ -7,7 +7,6 @@ module QA
view
'app/views/projects/deploy_keys/_index.html.haml'
do
element
:expand_deploy_keys_section
,
'.repository-deploy-keys'
element
:expand_deploy_keys_button
,
"= expanded ? 'Collapse' : 'Expand'"
end
def
expand_deploy_keys
(
&
block
)
...
...
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