77
88import { cleanupRule , loadRule } from '../../tasks/api_fixtures' ;
99import { RESPONSE_ACTIONS_ITEM_0 , RESPONSE_ACTIONS_ITEM_1 } from '../../tasks/response_actions' ;
10- import { ROLE , login } from '../../tasks/login' ;
1110import {
1211 checkActionItemsInResults ,
12+ clickRuleName ,
1313 inputQuery ,
1414 loadRuleAlerts ,
1515 submitQuery ,
1616} from '../../tasks/live_query' ;
1717import { closeModalIfVisible , closeToastIfVisible } from '../../tasks/integrations' ;
1818import { RESULTS_TABLE , RESULTS_TABLE_BUTTON } from '../../screens/live_query' ;
19+ import { tag } from '../../tags' ;
20+ import { ServerlessRoleName } from '../../support/roles' ;
1921
2022const UUID_REGEX = '[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}' ;
2123
22- describe ( 'Alert Event Details' , { browser : 'electron' } , ( ) => {
24+ describe ( 'Alert Event Details' , { browser : 'electron' , tags : [ tag . ESS , tag . SERVERLESS ] } , ( ) => {
2325 let ruleId : string ;
2426 let ruleName : string ;
2527
@@ -36,9 +38,9 @@ describe('Alert Event Details', { browser: 'electron' }, () => {
3638 } ) ;
3739
3840 beforeEach ( ( ) => {
39- login ( ROLE . soc_manager ) ;
41+ cy . login ( ServerlessRoleName . SOC_MANAGER ) ;
4042 cy . visit ( '/app/security/rules' ) ;
41- cy . contains ( ruleName ) . click ( ) ;
43+ clickRuleName ( ruleName ) ;
4244 } ) ;
4345
4446 it ( 'should be able to add investigation guides to response actions' , ( ) => {
@@ -98,7 +100,7 @@ describe('Alert Event Details', { browser: 'electron' }, () => {
98100 closeModalIfVisible ( ) ;
99101 } ) ;
100102
101- it ( 'can visit discover from response action results' , ( ) => {
103+ it ( 'can visit discover from response action results' , { tags : [ tag . ESS ] } , ( ) => {
102104 const discoverRegex = new RegExp ( `action_id: ${ UUID_REGEX } ` ) ;
103105 cy . getBySel ( 'expand-event' ) . first ( ) . click ( ) ;
104106 cy . getBySel ( 'securitySolutionDocumentDetailsFlyoutResponseSectionHeader' ) . click ( ) ;
@@ -124,7 +126,7 @@ describe('Alert Event Details', { browser: 'electron' }, () => {
124126 } ) ;
125127 } ) ;
126128
127- it ( 'can visit lens from response action results' , ( ) => {
129+ it ( 'can visit lens from response action results' , { tags : [ tag . ESS ] } , ( ) => {
128130 const lensRegex = new RegExp ( `Action ${ UUID_REGEX } results` ) ;
129131 cy . getBySel ( 'expand-event' ) . first ( ) . click ( ) ;
130132 cy . getBySel ( 'securitySolutionDocumentDetailsFlyoutResponseSectionHeader' ) . click ( ) ;
@@ -158,7 +160,7 @@ describe('Alert Event Details', { browser: 'electron' }, () => {
158160 cy . getBySel ( 'breadcrumbs' ) . contains ( lensRegex ) ;
159161 } ) ;
160162
161- it ( 'can add to timeline from response action results' , ( ) => {
163+ it ( 'can add to timeline from response action results' , { tags : [ tag . ESS ] } , ( ) => {
162164 const timelineRegex = new RegExp ( `Added ${ UUID_REGEX } to timeline` ) ;
163165 const filterRegex = new RegExp ( `action_id: "${ UUID_REGEX } "` ) ;
164166 cy . getBySel ( 'expand-event' ) . first ( ) . click ( ) ;
0 commit comments