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
e268575b
Commit
e268575b
authored
Jan 15, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add view elements to deploy keys pages
parent
abae33a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
qa/qa/page/project/settings/common.rb
qa/qa/page/project/settings/common.rb
+2
-2
qa/qa/page/project/settings/deploy_keys.rb
qa/qa/page/project/settings/deploy_keys.rb
+12
-6
qa/qa/page/project/settings/repository.rb
qa/qa/page/project/settings/repository.rb
+4
-7
No files found.
qa/qa/page/project/settings/common.rb
View file @
e268575b
...
...
@@ -3,9 +3,9 @@ module QA
module
Project
module
Settings
module
Common
def
expand
(
selector
)
def
expand
(
element_name
)
page
.
within
(
'#content-body'
)
do
find
(
selector
).
click
click_element
(
element_name
)
yield
end
...
...
qa/qa/page/project/settings/deploy_keys.rb
View file @
e268575b
...
...
@@ -3,12 +3,18 @@ module QA
module
Project
module
Settings
class
DeployKeys
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/projects/deploy_keys/edit.html.haml'
view
'app/views/projects/deploy_keys/_form.html.haml'
do
element
:deploy_key_title
,
'text_field :title'
element
:deploy_key_key
,
'text_area :key'
end
view
'app/assets/javascripts/deploy_keys/components/app.vue'
do
element
:deploy_keys_section
,
'deploy-keys'
end
view
'app/assets/javascripts/deploy_keys/components/key.vue'
do
element
:key_title
,
'class="title"'
end
def
fill_key_title
(
title
)
fill_in
'deploy_key_title'
,
with:
title
...
...
qa/qa/page/project/settings/repository.rb
View file @
e268575b
...
...
@@ -5,15 +5,12 @@ module QA
class
Repository
<
Page
::
Base
include
Common
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/projects/settings/repository/show.html.haml'
view
'app/views/projects/deploy_keys/_index.html.haml'
do
element
:expand_deploy_keys
end
def
expand_deploy_keys
(
&
block
)
expand
(
'.qa-expand-deploy-keys'
)
do
expand
(
:expand_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