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
module Page
module Admin
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
scroll_to 'legend', text: 'Repository Storage'
check 'Create new projects using hashed storage paths'
......
......@@ -2,6 +2,13 @@ module QA
module Page
module Group
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)
click_link name
end
......
......@@ -2,6 +2,13 @@ module QA
module Page
module Mattermost
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
click_link class: 'btn btn-custom-login gitlab'
......
......@@ -2,6 +2,13 @@ module QA
module Page
module Mattermost
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
visit(Runtime::Scenario.mattermost_address)
end
......
......@@ -2,6 +2,13 @@ module QA
module Page
module Menu
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
click_link 'License'
end
......
......@@ -2,6 +2,13 @@ module QA
module Page
module Project
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
find('#s2id_project_namespace_id').click
find('.select2-result-label', text: Runtime::Namespace.name).click
......
......@@ -3,6 +3,13 @@ module QA
module Project
module Settings
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)
fill_in 'deploy_key_title', with: title
end
......
......@@ -5,6 +5,13 @@ module QA
class Repository < Page::Base
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)
expand('.qa-expand-deploy-keys') do
DeployKeys.perform(&block)
......
......@@ -2,6 +2,13 @@ module QA
module Page
module Project
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
find('#clone-dropdown').click
......
......@@ -44,6 +44,8 @@ module QA
end
validators.each(&:validate!)
puts 'Views / selectors validation passed!'
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