Commit b1c38870 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add temporary views coupling to all QA page objects

parent 7a94787f
...@@ -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'
......
...@@ -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
......
...@@ -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'
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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)
......
...@@ -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
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment