File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
cypress/integration/plugins/security-analytics-dashboards-plugin Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -251,16 +251,14 @@ describe('Alerts', () => {
251251 } ) ;
252252 } ) ;
253253
254- // Confirm the rule document ID is present
255- cy . get ( '[data-test-subj="finding-details-flyout-rule-document-id"]' )
256- . invoke ( 'text' )
257- . then ( ( text ) => expect ( text ) . to . not . equal ( '-' ) ) ;
258-
259254 // Confirm the rule index
260255 cy . get (
261256 '[data-test-subj="finding-details-flyout-rule-document-index"]'
262257 ) . contains ( indexName ) ;
263258
259+ // Confirm there is atleast one row of document
260+ cy . get ( 'tbody > tr' ) . should ( 'have.length.least' , 1 ) ;
261+
264262 // Confirm the rule document matches
265263 // The EuiCodeEditor used for this component stores each line of the JSON in an array of elements;
266264 // so this test formats the expected document into an array of strings,
@@ -271,7 +269,10 @@ describe('Alerts', () => {
271269 2
272270 ) ;
273271 const documentLines = document . split ( '\n' ) ;
274- cy . get ( '[data-test-subj="finding-details-flyout-rule-document"]' )
272+ cy . get (
273+ '[data-test-subj="finding-details-flyout-document-toggle-0"]'
274+ ) . click ( { force : true } ) ;
275+ cy . get ( '[data-test-subj="finding-details-flyout-rule-document-0"]' )
275276 . get ( '[class="euiCodeBlock__line"]' )
276277 . each ( ( lineElement , lineIndex ) => {
277278 let line = lineElement . text ( ) ;
You can’t perform that action at this time.
0 commit comments