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
cd8da77a
Commit
cd8da77a
authored
Jan 23, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored expand_section to use name instead of selector
Removed previously added class elements
parent
ca425ff2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
13 deletions
+18
-13
app/views/projects/deploy_keys/_index.html.haml
app/views/projects/deploy_keys/_index.html.haml
+1
-1
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
+9
-4
qa/qa/page/project/settings/main.rb
qa/qa/page/project/settings/main.rb
+2
-2
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 @
cd8da77a
-
expanded
=
Rails
.
env
.
test?
%section
.settings.
repository-deploy-keys.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Deploy Keys
...
...
app/views/projects/protected_branches/shared/_index.html.haml
View file @
cd8da77a
-
expanded
=
Rails
.
env
.
test?
%section
.settings.
project-protected-branches.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Protected Branches
...
...
app/views/projects/protected_tags/shared/_index.html.haml
View file @
cd8da77a
-
expanded
=
Rails
.
env
.
test?
%section
.settings.
project-protected-tags.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Protected Tags
...
...
ee/app/views/projects/mirrors/_push.html.haml
View file @
cd8da77a
-
expanded
=
Rails
.
env
.
test?
%section
.settings.
project-remote-mirror-settings.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.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 @
cd8da77a
-
return
unless
@project
.
feature_available?
(
:push_rules
)
-
expanded
=
Rails
.
env
.
test?
%section
.settings.
repository-push-rules.
no-animate
{
class:
(
'expanded'
if
expanded
)
}
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
Push Rules
...
...
qa/qa/page/project/settings/common.rb
View file @
cd8da77a
...
...
@@ -11,11 +11,16 @@ module QA
end
end
def
expand_section
(
selector
)
page
.
within
(
selector
)
do
find_button
(
'Expand'
).
click
# Click the Expand button present in the specified section
#
# @param [String] name present in the container in the DOM
def
expand_section
(
name
)
page
.
within
(
'#content-body'
)
do
page
.
within
(
'section'
,
text:
name
)
do
click_button
(
'Expand'
)
yield
if
block_given?
yield
if
block_given?
end
end
end
end
...
...
qa/qa/page/project/settings/main.rb
View file @
cd8da77a
...
...
@@ -6,11 +6,11 @@ module QA
include
Common
view
'app/views/projects/edit.html.haml'
do
element
:advanced_settings_section
,
'
%section.settings.advanced-
settings'
element
:advanced_settings_section
,
'
Advanced
settings'
end
def
expand_advanced_settings
(
&
block
)
expand_section
(
'
section.advanced-
settings'
)
do
expand_section
(
'
Advanced
settings'
)
do
Advanced
.
perform
(
&
block
)
end
end
...
...
qa/qa/page/project/settings/repository.rb
View file @
cd8da77a
...
...
@@ -6,11 +6,11 @@ module QA
include
Common
view
'app/views/projects/deploy_keys/_index.html.haml'
do
element
:
expand_deploy_keys_section
,
'.repository-deploy-k
eys'
element
:
deploy_keys_section
,
'Deploy K
eys'
end
def
expand_deploy_keys
(
&
block
)
expand_section
(
'
section.repository-deploy-k
eys'
)
do
expand_section
(
'
Deploy K
eys'
)
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