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
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
...
@@ -70,12 +70,13 @@ module QA
module
Main
module
Main
autoload
:Login
,
'qa/page/main/login'
autoload
:Login
,
'qa/page/main/login'
autoload
:Menu
,
'qa/page/main/menu'
autoload
:OAuth
,
'qa/page/main/oauth'
autoload
:OAuth
,
'qa/page/main/oauth'
end
end
module
Menu
module
Menu
autoload
:Main
,
'qa/page/menu/main'
autoload
:Side
,
'qa/page/menu/side'
autoload
:Side
,
'qa/page/menu/side'
autoload
:Admin
,
'qa/page/menu/admin'
end
end
module
Dashboard
module
Dashboard
...
@@ -100,7 +101,6 @@ module QA
...
@@ -100,7 +101,6 @@ module QA
end
end
module
Admin
module
Admin
autoload
:Menu
,
'qa/page/admin/menu'
autoload
:Settings
,
'qa/page/admin/settings'
autoload
:Settings
,
'qa/page/admin/settings'
end
end
...
...
qa/qa/factory/resource/sandbox.rb
View file @
1e79ebf0
...
@@ -11,7 +11,7 @@ module QA
...
@@ -11,7 +11,7 @@ module QA
end
end
def
fabricate!
def
fabricate!
Page
::
M
ain
::
Menu
.
act
{
go_to_groups
}
Page
::
M
enu
::
Main
.
act
{
go_to_groups
}
Page
::
Dashboard
::
Groups
.
perform
do
|
page
|
Page
::
Dashboard
::
Groups
.
perform
do
|
page
|
if
page
.
has_group?
(
@name
)
if
page
.
has_group?
(
@name
)
...
...
qa/qa/factory/settings/hashed_storage.rb
View file @
1e79ebf0
...
@@ -6,15 +6,15 @@ module QA
...
@@ -6,15 +6,15 @@ module QA
raise
ArgumentError
unless
traits
.
include?
(
:enabled
)
raise
ArgumentError
unless
traits
.
include?
(
:enabled
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
M
ain
::
Menu
.
act
{
go_to_admin_area
}
Page
::
M
enu
::
Main
.
act
{
go_to_admin_area
}
Page
::
Admin
::
Menu
.
act
{
go_to_settings
}
Page
::
Menu
::
Admin
.
act
{
go_to_settings
}
Page
::
Admin
::
Settings
.
act
do
Page
::
Admin
::
Settings
.
act
do
enable_hashed_storage
enable_hashed_storage
save_settings
save_settings
end
end
QA
::
Page
::
M
ain
::
Menu
.
act
{
sign_out
}
QA
::
Page
::
M
enu
::
Main
.
act
{
sign_out
}
end
end
end
end
end
end
...
...
qa/qa/page/
admin/menu
.rb
→
qa/qa/page/
menu/admin
.rb
View file @
1e79ebf0
module
QA
module
QA
module
Page
module
Page
module
Admin
module
Menu
class
Menu
<
Page
::
Base
class
Admin
<
Page
::
Base
def
go_to_license
def
go_to_license
click_link
'License'
click_link
'License'
end
end
...
...
qa/qa/page/m
ain/menu
.rb
→
qa/qa/page/m
enu/main
.rb
View file @
1e79ebf0
module
QA
module
QA
module
Page
module
Page
module
M
ain
module
M
enu
class
M
enu
<
Page
::
Base
class
M
ain
<
Page
::
Base
def
go_to_groups
def
go_to_groups
within_top_menu
{
click_link
'Groups'
}
within_top_menu
{
click_link
'Groups'
}
end
end
...
...
qa/qa/specs/features/login/standard_spec.rb
View file @
1e79ebf0
...
@@ -7,7 +7,7 @@ module QA
...
@@ -7,7 +7,7 @@ module QA
# TODO, since `Signed in successfully` message was removed
# TODO, since `Signed in successfully` message was removed
# this is the only way to tell if user is signed in correctly.
# 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
expect
(
menu
).
to
have_personal_area
end
end
end
end
...
...
qa/qa/specs/features/mattermost/group_create_spec.rb
View file @
1e79ebf0
...
@@ -3,7 +3,7 @@ module QA
...
@@ -3,7 +3,7 @@ module QA
scenario
'creating a group with a mattermost team'
do
scenario
'creating a group with a mattermost team'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
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
::
Dashboard
::
Groups
.
perform
do
|
page
|
page
.
go_to_new_group
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