BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7fa14c6b
Commit
7fa14c6b
authored
Sep 08, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GitLab QA for new navigation enabled by default
parent
bce1c509
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
menu.rb
qa/qa/page/main/menu.rb
+11
-10
No files found.
qa/qa/page/main/menu.rb
View file @
7fa14c6b
...
...
@@ -3,20 +3,19 @@ module QA
module
Main
class
Menu
<
Page
::
Base
def
go_to_groups
within_
global
_menu
{
click_link
'Groups'
}
within_
top
_menu
{
click_link
'Groups'
}
end
def
go_to_projects
within_
global
_menu
{
click_link
'Projects'
}
within_
top
_menu
{
click_link
'Projects'
}
end
def
go_to_admin_area
within_
user
_menu
{
click_link
'Admin area'
}
within_
top
_menu
{
click_link
'Admin area'
}
end
def
sign_out
within_user_menu
do
find
(
'.header-user-dropdown-toggle'
).
click
click_link
(
'Sign out'
)
end
end
...
...
@@ -27,17 +26,19 @@ module QA
private
def
within_global_menu
find
(
'.global-dropdown-toggle'
).
click
page
.
within
(
'.global-dropdown-menu'
)
do
def
within_top_menu
page
.
within
(
'.navbar'
)
do
yield
end
end
def
within_user_menu
page
.
within
(
'.navbar-nav'
)
do
yield
within_top_menu
do
find
(
'.header-user-dropdown-toggle'
).
click
page
.
within
(
'.dropdown-menu-nav'
)
do
yield
end
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