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
Boxiang Sun
gitlab-ce
Commits
b1c38870
Commit
b1c38870
authored
Jan 10, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add temporary views coupling to all QA page objects
parent
7a94787f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
0 deletions
+65
-0
qa/qa/page/admin/settings.rb
qa/qa/page/admin/settings.rb
+7
-0
qa/qa/page/group/show.rb
qa/qa/page/group/show.rb
+7
-0
qa/qa/page/mattermost/login.rb
qa/qa/page/mattermost/login.rb
+7
-0
qa/qa/page/mattermost/main.rb
qa/qa/page/mattermost/main.rb
+7
-0
qa/qa/page/menu/admin.rb
qa/qa/page/menu/admin.rb
+7
-0
qa/qa/page/project/new.rb
qa/qa/page/project/new.rb
+7
-0
qa/qa/page/project/settings/deploy_keys.rb
qa/qa/page/project/settings/deploy_keys.rb
+7
-0
qa/qa/page/project/settings/repository.rb
qa/qa/page/project/settings/repository.rb
+7
-0
qa/qa/page/project/show.rb
qa/qa/page/project/show.rb
+7
-0
qa/qa/scenario/test/sanity/selectors.rb
qa/qa/scenario/test/sanity/selectors.rb
+2
-0
No files found.
qa/qa/page/admin/settings.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Admin
module
Admin
class
Settings
<
Page
::
Base
class
Settings
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/admin/application_settings/show.html.haml'
def
enable_hashed_storage
def
enable_hashed_storage
scroll_to
'legend'
,
text:
'Repository Storage'
scroll_to
'legend'
,
text:
'Repository Storage'
check
'Create new projects using hashed storage paths'
check
'Create new projects using hashed storage paths'
...
...
qa/qa/page/group/show.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Group
module
Group
class
Show
<
Page
::
Base
class
Show
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/groups/show.html.haml'
def
go_to_subgroup
(
name
)
def
go_to_subgroup
(
name
)
click_link
name
click_link
name
end
end
...
...
qa/qa/page/mattermost/login.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Mattermost
module
Mattermost
class
Login
<
Page
::
Base
class
Login
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/projects/mattermosts/new.html.haml'
def
sign_in_using_oauth
def
sign_in_using_oauth
click_link
class:
'btn btn-custom-login gitlab'
click_link
class:
'btn btn-custom-login gitlab'
...
...
qa/qa/page/mattermost/main.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Mattermost
module
Mattermost
class
Main
<
Page
::
Base
class
Main
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/projects/mattermosts/new.html.haml'
def
initialize
def
initialize
visit
(
Runtime
::
Scenario
.
mattermost_address
)
visit
(
Runtime
::
Scenario
.
mattermost_address
)
end
end
...
...
qa/qa/page/menu/admin.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Menu
module
Menu
class
Admin
<
Page
::
Base
class
Admin
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/admin/dashboard/index.html.haml'
def
go_to_license
def
go_to_license
click_link
'License'
click_link
'License'
end
end
...
...
qa/qa/page/project/new.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Project
module
Project
class
New
<
Page
::
Base
class
New
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/projects/new.html.haml'
def
choose_test_namespace
def
choose_test_namespace
find
(
'#s2id_project_namespace_id'
).
click
find
(
'#s2id_project_namespace_id'
).
click
find
(
'.select2-result-label'
,
text:
Runtime
::
Namespace
.
name
).
click
find
(
'.select2-result-label'
,
text:
Runtime
::
Namespace
.
name
).
click
...
...
qa/qa/page/project/settings/deploy_keys.rb
View file @
b1c38870
...
@@ -3,6 +3,13 @@ module QA
...
@@ -3,6 +3,13 @@ module QA
module
Project
module
Project
module
Settings
module
Settings
class
DeployKeys
<
Page
::
Base
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'
def
fill_key_title
(
title
)
def
fill_key_title
(
title
)
fill_in
'deploy_key_title'
,
with:
title
fill_in
'deploy_key_title'
,
with:
title
end
end
...
...
qa/qa/page/project/settings/repository.rb
View file @
b1c38870
...
@@ -5,6 +5,13 @@ module QA
...
@@ -5,6 +5,13 @@ module QA
class
Repository
<
Page
::
Base
class
Repository
<
Page
::
Base
include
Common
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'
def
expand_deploy_keys
(
&
block
)
def
expand_deploy_keys
(
&
block
)
expand
(
'.qa-expand-deploy-keys'
)
do
expand
(
'.qa-expand-deploy-keys'
)
do
DeployKeys
.
perform
(
&
block
)
DeployKeys
.
perform
(
&
block
)
...
...
qa/qa/page/project/show.rb
View file @
b1c38870
...
@@ -2,6 +2,13 @@ module QA
...
@@ -2,6 +2,13 @@ module QA
module
Page
module
Page
module
Project
module
Project
class
Show
<
Page
::
Base
class
Show
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#154
#
view
'app/views/projects/show.html.haml'
def
choose_repository_clone_http
def
choose_repository_clone_http
find
(
'#clone-dropdown'
).
click
find
(
'#clone-dropdown'
).
click
...
...
qa/qa/scenario/test/sanity/selectors.rb
View file @
b1c38870
...
@@ -44,6 +44,8 @@ module QA
...
@@ -44,6 +44,8 @@ module QA
end
end
validators
.
each
(
&
:validate!
)
validators
.
each
(
&
:validate!
)
puts
'Views / selectors validation passed!'
end
end
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