Commit e28f6653 authored by Sofia Vistas's avatar Sofia Vistas Committed by Alexander Turinske

Suggestion for Threat Monitoring

parent 59585dae
......@@ -120,6 +120,7 @@ module QA
autoload :Settings, 'qa/ee/page/project/sub_menus/settings'
autoload :Analytics, 'qa/ee/page/project/sub_menus/analytics'
autoload :LicenseCompliance, 'qa/ee/page/project/sub_menus/license_compliance'
autoload :ThreatMonitoring, 'qa/ee/page/project/sub_menus/threat_monitoring'
end
module Issue
......@@ -181,6 +182,10 @@ module QA
module Job
autoload :Show, 'qa/ee/page/project/job/show'
end
module ThreatMonitoring
autoload :AlertsList, 'qa/ee/page/project/threat_monitoring/alerts_list'
end
end
module MergeRequest
......
......@@ -24,7 +24,7 @@ module QA
def click_on_threat_monitoring
hover_security_compliance do
within_sidebar do
within_submenu do
click_element(:sidebar_menu_item_link, menu_item: 'Threat Monitoring')
end
end
......
# frozen_string_literal: true
module QA
module EE
module Page
module Project
module SubMenus
module ThreatMonitoring
extend QA::Page::PageConcern
view 'ee/app/assets/javascripts/threat_monitoring/components/app.vue' do
element :alerts_tab
end
view 'ee/app/assets/javascripts/threat_monitoring/components/alerts/alerts_list.vue' do
element :alerts_list
end
def has_alerts_tab?
find_element?(:alerts_tab)
end
def has_alerts_list?
find_element?(:alerts_list)
end
end
end
end
end
end
end
\ No newline at end of file
# frozen_string_literal: true
module QA
module EE
module Page
module Project
module ThreatMonitoring
class AlertsList < Page::Base
class AlertsList < QA::Page::Base
view 'ee/app/assets/javascripts/threat_monitoring/components/app.vue' do
element :alerts_tab
end
......@@ -13,11 +15,13 @@ module QA
end
def has_alerts_tab?
find_element?(:alerts_tab)
has_element?(:alerts_tab)
end
def has_alerts_list?
find_element?(:alerts_list)
has_element?(:alerts_list)
end
end
end
end
end
......
......@@ -25,7 +25,8 @@ module QA
Page::Project::Menu.perform(&:click_on_threat_monitoring)
EE::Page::Project::ThreatMonitoring::AlertsList.perform do |alerts_list|
expect(alerts_list).to have_alerts_tab have_alerts_list
expect(alerts_list).to have_alerts_tab
expect(alerts_list).to have_alerts_list
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