Commit 3317ac72 authored by Walmyr's avatar Walmyr

Merge branch 'qa-reduce-ce-ee-diff-in-qa-folder-ee' into 'master'

[EE] Reduce the CE/EE diff under `qa/`

See merge request gitlab-org/gitlab-ee!15145
parents 7819669a 08e21103
...@@ -137,6 +137,10 @@ module QA ...@@ -137,6 +137,10 @@ module QA
autoload :GroupSAML, 'qa/ee/scenario/test/integration/group_saml' autoload :GroupSAML, 'qa/ee/scenario/test/integration/group_saml'
autoload :Elasticsearch, 'qa/ee/scenario/test/integration/elasticsearch' autoload :Elasticsearch, 'qa/ee/scenario/test/integration/elasticsearch'
end end
module Sanity
autoload :Selectors, 'qa/ee/scenario/test/sanity/selectors'
end
end end
end end
end end
......
# frozen_string_literal: true
module QA
module EE
module Scenario
module Test
module Sanity
module Selectors
def pages
@ee_pages ||= super + [QA::EE::Page]
end
end
end
end
end
end
end
...@@ -5,10 +5,6 @@ module QA ...@@ -5,10 +5,6 @@ module QA
module Project module Project
module Issue module Issue
class New < Page::Base class New < Page::Base
view 'app/views/shared/form_elements/_description.html.haml' do
element :issue_description_textarea, "render 'projects/zen', f: form, attr: :description" # rubocop:disable QA/ElementWithPattern
end
view 'app/views/shared/issuable/_form.html.haml' do view 'app/views/shared/issuable/_form.html.haml' do
element :issuable_create_button element :issuable_create_button
end end
...@@ -17,6 +13,10 @@ module QA ...@@ -17,6 +13,10 @@ module QA
element :issue_title_textbox, 'form.text_field :title' # rubocop:disable QA/ElementWithPattern element :issue_title_textbox, 'form.text_field :title' # rubocop:disable QA/ElementWithPattern
end end
view 'app/views/shared/form_elements/_description.html.haml' do
element :issue_description_textarea, "render 'projects/zen', f: form, attr: :description" # rubocop:disable QA/ElementWithPattern
end
def add_title(title) def add_title(title)
fill_in 'issue_title', with: title fill_in 'issue_title', with: title
end end
......
...@@ -5,7 +5,6 @@ module QA ...@@ -5,7 +5,6 @@ module QA
module Project module Project
module Issue module Issue
class Show < Page::Base class Show < Page::Base
prepend QA::EE::Page::Project::Issue::Show
include Page::Component::Issuable::Common include Page::Component::Issuable::Common
include Page::Component::Note include Page::Component::Note
...@@ -27,17 +26,17 @@ module QA ...@@ -27,17 +26,17 @@ module QA
element :dropdown_input_field element :dropdown_input_field
end end
view 'app/views/shared/issuable/_sidebar.html.haml' do
element :dropdown_menu_labels
element :edit_link_labels
element :labels_block
end
view 'app/views/shared/notes/_form.html.haml' do view 'app/views/shared/notes/_form.html.haml' do
element :new_note_form, 'new-note' # rubocop:disable QA/ElementWithPattern element :new_note_form, 'new-note' # rubocop:disable QA/ElementWithPattern
element :new_note_form, 'attr: :note' # rubocop:disable QA/ElementWithPattern element :new_note_form, 'attr: :note' # rubocop:disable QA/ElementWithPattern
end end
view 'app/views/shared/issuable/_sidebar.html.haml' do
element :labels_block
element :edit_link_labels
element :dropdown_menu_labels
end
# Adds a comment to an issue # Adds a comment to an issue
# attachment option should be an absolute path # attachment option should be an absolute path
def comment(text, attachment: nil, filter: :all_activities) def comment(text, attachment: nil, filter: :all_activities)
...@@ -109,3 +108,5 @@ module QA ...@@ -109,3 +108,5 @@ module QA
end end
end end
end end
QA::Page::Project::Issue::Show.prepend(QA::EE::Page::Project::Issue::Show)
...@@ -5,14 +5,12 @@ module QA ...@@ -5,14 +5,12 @@ module QA
module Project module Project
class Menu < Page::Base class Menu < Page::Base
include SubMenus::Common include SubMenus::Common
include SubMenus::Project include SubMenus::Project
include SubMenus::CiCd include SubMenus::CiCd
include SubMenus::Issues include SubMenus::Issues
include SubMenus::Operations include SubMenus::Operations
include SubMenus::Repository include SubMenus::Repository
include SubMenus::Settings include SubMenus::Settings
include EE::Page::Project::SubMenus::SecurityCompliance # rubocop: disable Cop/InjectEnterpriseEditionModule
view 'app/views/layouts/nav/sidebar/_project.html.haml' do view 'app/views/layouts/nav/sidebar/_project.html.haml' do
element :activity_link element :activity_link
...@@ -41,3 +39,5 @@ module QA ...@@ -41,3 +39,5 @@ module QA
end end
end end
end end
QA::Page::Project::Menu.prepend(QA::EE::Page::Project::SubMenus::SecurityCompliance)
...@@ -7,11 +7,13 @@ module QA ...@@ -7,11 +7,13 @@ module QA
class Selectors < Scenario::Template class Selectors < Scenario::Template
include Scenario::Bootable include Scenario::Bootable
PAGES = [QA::Page, QA::EE::Page].freeze def pages
@pages ||= [QA::Page]
end
def perform(*) def perform(*)
validators = PAGES.map do |pages| validators = pages.map do |page|
Page::Validator.new(pages) Page::Validator.new(page)
end end
validators.flat_map(&:errors).tap do |errors| validators.flat_map(&:errors).tap do |errors|
...@@ -54,3 +56,5 @@ module QA ...@@ -54,3 +56,5 @@ module QA
end end
end end
end end
QA::Scenario::Test::Sanity::Selectors.prepend(QA::EE::Scenario::Test::Sanity::Selectors)
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