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
c9171836
Commit
c9171836
authored
Dec 28, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just add a new class to locate the expand button
parent
45d0be83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
app/views/projects/deploy_keys/_index.html.haml
app/views/projects/deploy_keys/_index.html.haml
+1
-1
qa/qa/page/project/settings/repository.rb
qa/qa/page/project/settings/repository.rb
+1
-5
No files found.
app/views/projects/deploy_keys/_index.html.haml
View file @
c9171836
...
...
@@ -3,7 +3,7 @@
.settings-header
%h4
Deploy Keys
%button
.btn.js-settings-toggle
%button
.btn.js-settings-toggle
.qa-expand-deploy-keys
=
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.
...
...
qa/qa/page/project/settings/repository.rb
View file @
c9171836
...
...
@@ -5,11 +5,7 @@ module QA
class
Repository
<
Page
::
Base
def
expand
(
title
)
page
.
within
(
'#content-body'
)
do
find
(
:xpath
,
"//button[contains(text(), 'Expand')]"
+
"[../h4[contains(text(), '
#{
title
}
')]]"
).
click
find
(
'.qa-expand-deploy-keys'
).
click
end
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