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
c2c46013
Commit
c2c46013
authored
Jan 03, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor QA code to use common expand_section method
parent
51a2e376
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
14 deletions
+14
-14
app/views/projects/deploy_keys/_index.html.haml
app/views/projects/deploy_keys/_index.html.haml
+2
-2
app/views/projects/protected_branches/shared/_index.html.haml
...views/projects/protected_branches/shared/_index.html.haml
+1
-1
app/views/projects/protected_tags/shared/_index.html.haml
app/views/projects/protected_tags/shared/_index.html.haml
+1
-1
ee/app/views/projects/mirrors/_push.html.haml
ee/app/views/projects/mirrors/_push.html.haml
+1
-1
ee/app/views/projects/push_rules/_index.html.haml
ee/app/views/projects/push_rules/_index.html.haml
+1
-1
qa/qa/page/project/settings/common.rb
qa/qa/page/project/settings/common.rb
+3
-3
qa/qa/page/project/settings/main.rb
qa/qa/page/project/settings/main.rb
+3
-3
qa/qa/page/project/settings/repository.rb
qa/qa/page/project/settings/repository.rb
+2
-2
No files found.
app/views/projects/deploy_keys/_index.html.haml
View file @
c2c46013
-
expanded
=
Rails
.
env
.
test?
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.
repository-deploy-keys.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Deploy Keys
%button
.btn.js-settings-toggle
.qa-expand-deploy-keys
%button
.btn.js-settings-toggle
=
expanded
?
'Collapse'
:
'Expand'
%p
Deploy keys allow read-only or read-write (if enabled) access to your repository. Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one.
...
...
app/views/projects/protected_branches/shared/_index.html.haml
View file @
c2c46013
-
expanded
=
Rails
.
env
.
test?
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.
project-protected-branches.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Protected Branches
...
...
app/views/projects/protected_tags/shared/_index.html.haml
View file @
c2c46013
-
expanded
=
Rails
.
env
.
test?
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.
project-protected-tags.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Protected Tags
...
...
ee/app/views/projects/mirrors/_push.html.haml
View file @
c2c46013
-
expanded
=
Rails
.
env
.
test?
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.
project-remote-mirror-settings.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Push to a remote repository
...
...
ee/app/views/projects/push_rules/_index.html.haml
View file @
c2c46013
-
return
unless
@project
.
feature_available?
(
:push_rules
)
-
expanded
=
Rails
.
env
.
test?
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.
repository-push-rules.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Push Rules
...
...
qa/qa/page/project/settings/common.rb
View file @
c2c46013
...
...
@@ -3,9 +3,9 @@ module QA
module
Project
module
Settings
module
Common
def
expand
(
element_name
)
page
.
within
(
'#content-body'
)
do
click_element
(
element_name
)
def
expand
_section
(
selector
)
page
.
within
(
selector
)
do
find_button
(
'Expand'
).
click
yield
end
...
...
qa/qa/page/project/settings/main.rb
View file @
c2c46013
...
...
@@ -3,10 +3,10 @@ module QA
module
Project
module
Settings
class
Main
<
Page
::
Base
include
Common
def
expand_advanced_settings
within
(
'section.advanced-settings'
)
do
find_button
(
'Expand'
).
click
end
expand_section
(
'section.advanced-settings'
)
end
def
rename_to
(
path
)
...
...
qa/qa/page/project/settings/repository.rb
View file @
c2c46013
...
...
@@ -6,11 +6,11 @@ module QA
include
Common
view
'app/views/projects/deploy_keys/_index.html.haml'
do
element
:expand_deploy_keys
element
:expand_deploy_keys
,
'%section.settings.repository-deploy-keys'
end
def
expand_deploy_keys
(
&
block
)
expand
(
:expand_deploy_keys
)
do
expand
_section
(
'section.repository-deploy-keys'
)
do
DeployKeys
.
perform
(
&
block
)
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