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
Léo-Paul Géneau
gitlab-ce
Commits
1e79ebf0
Commit
1e79ebf0
authored
Jan 02, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put all menus under menu module
parent
7945878d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
qa/qa.rb
qa/qa.rb
+2
-2
qa/qa/factory/resource/sandbox.rb
qa/qa/factory/resource/sandbox.rb
+1
-1
qa/qa/factory/settings/hashed_storage.rb
qa/qa/factory/settings/hashed_storage.rb
+3
-3
qa/qa/page/menu/admin.rb
qa/qa/page/menu/admin.rb
+2
-2
qa/qa/page/menu/main.rb
qa/qa/page/menu/main.rb
+2
-2
qa/qa/specs/features/login/standard_spec.rb
qa/qa/specs/features/login/standard_spec.rb
+1
-1
qa/qa/specs/features/mattermost/group_create_spec.rb
qa/qa/specs/features/mattermost/group_create_spec.rb
+1
-1
No files found.
qa/qa.rb
View file @
1e79ebf0
...
...
@@ -70,12 +70,13 @@ module QA
module
Main
autoload
:Login
,
'qa/page/main/login'
autoload
:Menu
,
'qa/page/main/menu'
autoload
:OAuth
,
'qa/page/main/oauth'
end
module
Menu
autoload
:Main
,
'qa/page/menu/main'
autoload
:Side
,
'qa/page/menu/side'
autoload
:Admin
,
'qa/page/menu/admin'
end
module
Dashboard
...
...
@@ -100,7 +101,6 @@ module QA
end
module
Admin
autoload
:Menu
,
'qa/page/admin/menu'
autoload
:Settings
,
'qa/page/admin/settings'
end
...
...
qa/qa/factory/resource/sandbox.rb
View file @
1e79ebf0
...
...
@@ -11,7 +11,7 @@ module QA
end
def
fabricate!
Page
::
M
ain
::
Menu
.
act
{
go_to_groups
}
Page
::
M
enu
::
Main
.
act
{
go_to_groups
}
Page
::
Dashboard
::
Groups
.
perform
do
|
page
|
if
page
.
has_group?
(
@name
)
...
...
qa/qa/factory/settings/hashed_storage.rb
View file @
1e79ebf0
...
...
@@ -6,15 +6,15 @@ module QA
raise
ArgumentError
unless
traits
.
include?
(
:enabled
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
M
ain
::
Menu
.
act
{
go_to_admin_area
}
Page
::
Admin
::
Menu
.
act
{
go_to_settings
}
Page
::
M
enu
::
Main
.
act
{
go_to_admin_area
}
Page
::
Menu
::
Admin
.
act
{
go_to_settings
}
Page
::
Admin
::
Settings
.
act
do
enable_hashed_storage
save_settings
end
QA
::
Page
::
M
ain
::
Menu
.
act
{
sign_out
}
QA
::
Page
::
M
enu
::
Main
.
act
{
sign_out
}
end
end
end
...
...
qa/qa/page/
admin/menu
.rb
→
qa/qa/page/
menu/admin
.rb
View file @
1e79ebf0
module
QA
module
Page
module
Admin
class
Menu
<
Page
::
Base
module
Menu
class
Admin
<
Page
::
Base
def
go_to_license
click_link
'License'
end
...
...
qa/qa/page/m
ain/menu
.rb
→
qa/qa/page/m
enu/main
.rb
View file @
1e79ebf0
module
QA
module
Page
module
M
ain
class
M
enu
<
Page
::
Base
module
M
enu
class
M
ain
<
Page
::
Base
def
go_to_groups
within_top_menu
{
click_link
'Groups'
}
end
...
...
qa/qa/specs/features/login/standard_spec.rb
View file @
1e79ebf0
...
...
@@ -7,7 +7,7 @@ module QA
# TODO, since `Signed in successfully` message was removed
# this is the only way to tell if user is signed in correctly.
#
Page
::
M
ain
::
Menu
.
perform
do
|
menu
|
Page
::
M
enu
::
Main
.
perform
do
|
menu
|
expect
(
menu
).
to
have_personal_area
end
end
...
...
qa/qa/specs/features/mattermost/group_create_spec.rb
View file @
1e79ebf0
...
...
@@ -3,7 +3,7 @@ module QA
scenario
'creating a group with a mattermost team'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
M
ain
::
Menu
.
act
{
go_to_groups
}
Page
::
M
enu
::
Main
.
act
{
go_to_groups
}
Page
::
Dashboard
::
Groups
.
perform
do
|
page
|
page
.
go_to_new_group
...
...
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