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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e804ed38
Commit
e804ed38
authored
Apr 30, 2021
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create end-to-end for threat monitoring alerts
- test if page loads
parent
dda51887
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
1 deletion
+72
-1
ee/app/assets/javascripts/threat_monitoring/components/alerts/alerts_list.vue
...ripts/threat_monitoring/components/alerts/alerts_list.vue
+1
-0
ee/app/assets/javascripts/threat_monitoring/components/app.vue
...p/assets/javascripts/threat_monitoring/components/app.vue
+5
-1
qa/qa/ee/page/project/sub_menus/security_compliance.rb
qa/qa/ee/page/project/sub_menus/security_compliance.rb
+8
-0
qa/qa/ee/page/project/threat_monitoring/alerts_list.rb
qa/qa/ee/page/project/threat_monitoring/alerts_list.rb
+25
-0
qa/qa/specs/features/ee/browser_ui/10_protect/policy_list_spec.rb
...ecs/features/ee/browser_ui/10_protect/policy_list_spec.rb
+33
-0
No files found.
ee/app/assets/javascripts/threat_monitoring/components/alerts/alerts_list.vue
View file @
e804ed38
...
...
@@ -200,6 +200,7 @@ export default {
<gl-table
class=
"alert-management-table"
data-qa-selector=
"alerts_list"
:busy=
"isLoadingFirstAlerts"
:items=
"alerts"
:fields=
"$options.i18n.FIELDS"
...
...
ee/app/assets/javascripts/threat_monitoring/components/app.vue
View file @
e804ed38
...
...
@@ -87,7 +87,11 @@ export default {
</header>
<gl-tabs
content-class=
"gl-pt-0"
>
<gl-tab
:title=
"s__('ThreatMonitoring|Alerts')"
data-testid=
"threat-monitoring-alerts-tab"
>
<gl-tab
:title=
"s__('ThreatMonitoring|Alerts')"
data-testid=
"threat-monitoring-alerts-tab"
data-qa-selector=
"alerts_tab"
>
<alerts
/>
</gl-tab>
<gl-tab
ref=
"networkPolicyTab"
:title=
"s__('ThreatMonitoring|Policies')"
>
...
...
qa/qa/ee/page/project/sub_menus/security_compliance.rb
View file @
e804ed38
...
...
@@ -22,6 +22,14 @@ module QA
end
end
def
click_on_threat_monitoring
hover_security_compliance
do
within_sidebar
do
click_element
(
:sidebar_menu_item_link
,
menu_item:
'Threat Monitoring'
)
end
end
end
def
click_on_vulnerability_report
hover_security_compliance
do
within_submenu
do
...
...
qa/qa/ee/page/project/threat_monitoring/alerts_list.rb
0 → 100644
View file @
e804ed38
# frozen_string_literal: true
module
QA
module
Page
module
ThreatMonitoring
class
AlertsList
<
Page
::
Base
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
qa/qa/specs/features/ee/browser_ui/10_protect/policy_list_spec.rb
0 → 100644
View file @
e804ed38
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Protect'
,
:runner
do
let
(
:approved_license_name
)
{
"MIT License"
}
let
(
:denied_license_name
)
{
"Apache License 2.0"
}
describe
'Threat Monitoring Policy List page'
do
before
(
:all
)
do
@executor
=
"qa-runner-
#{
Time
.
now
.
to_i
}
"
Flow
::
Login
.
sign_in
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
p
|
p
.
name
=
Runtime
::
Env
.
auto_devops_project_name
||
'project-with-protect'
p
.
description
=
'Project with Protect'
p
.
auto_devops_enabled
=
false
p
.
initialize_with_readme
=
true
end
@project
.
visit!
end
it
'can load Threat Monitoring page and view the policy alert list'
,
testcase:
'I do not know what to put here'
do
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
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