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
bc5552b3
Commit
bc5552b3
authored
Dec 29, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce Menu::Side
parent
c9171836
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
21 deletions
+34
-21
qa/qa.rb
qa/qa.rb
+4
-0
qa/qa/page/menu/side.rb
qa/qa/page/menu/side.rb
+29
-0
qa/qa/page/project/show.rb
qa/qa/page/project/show.rb
+0
-20
qa/qa/specs/features/project/add_deploy_key_spec.rb
qa/qa/specs/features/project/add_deploy_key_spec.rb
+1
-1
No files found.
qa/qa.rb
View file @
bc5552b3
...
...
@@ -73,6 +73,10 @@ module QA
autoload
:OAuth
,
'qa/page/main/oauth'
end
module
Menu
autoload
:Side
,
'qa/page/menu/side'
end
module
Dashboard
autoload
:Projects
,
'qa/page/dashboard/projects'
autoload
:Groups
,
'qa/page/dashboard/groups'
...
...
qa/qa/page/menu/side.rb
0 → 100644
View file @
bc5552b3
module
QA
module
Page
module
Menu
class
Side
<
Page
::
Base
def
click_repository_setting
hover_setting
do
click_link
(
'Repository'
)
end
end
private
def
hover_setting
within_sidebar
do
find
(
'.nav-item-name'
,
text:
'Settings'
).
hover
yield
end
end
def
within_sidebar
page
.
within
(
'.sidebar-top-level-items'
)
do
yield
end
end
end
end
end
end
qa/qa/page/project/show.rb
View file @
bc5552b3
...
...
@@ -10,12 +10,6 @@ module QA
end
end
def
click_repository_setting
hover_setting
do
click_link
(
'Repository'
)
end
end
def
repository_location
find
(
'#project_clone'
).
value
end
...
...
@@ -24,20 +18,6 @@ module QA
find
(
'.project-title'
).
text
end
def
hover_setting
within_sidebar
do
find
(
'.nav-item-name'
,
text:
'Settings'
).
hover
yield
end
end
def
within_sidebar
page
.
within
(
'.sidebar-top-level-items'
)
do
yield
end
end
def
wait_for_push
sleep
5
end
...
...
qa/qa/specs/features/project/add_deploy_key_spec.rb
View file @
bc5552b3
...
...
@@ -9,7 +9,7 @@ module QA
scenario
.
description
=
'project for adding deploy key test'
end
Page
::
Project
::
Show
.
act
do
Page
::
Menu
::
Side
.
act
do
click_repository_setting
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