File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
x-pack/solutions/security/test/cloud_security_posture_api/routes Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -883,17 +883,15 @@ export default function (providerContext: FtrProviderContext) {
883883 `node color mismatched [node: ${ node . id } ] [actual: ${ node . color } ]`
884884 ) ;
885885 expect ( node . documentsData ) . to . have . length ( 2 ) ;
886- expect ( node . documentsData ) . to . contain (
887- {
886+ expectExpect ( node . documentsData ) . toContainEqual (
887+ expectExpect . objectContaining ( {
888888 type : 'event' ,
889- } ,
890- `node documentsData missing event details [node: ${ node . id } ]`
889+ } )
891890 ) ;
892- expect ( node . documentsData ) . to . contain (
893- {
891+ expectExpect ( node . documentsData ) . toContainEqual (
892+ expectExpect . objectContaining ( {
894893 type : 'alert' ,
895- } ,
896- `node documentsData missing alert details [node: ${ node . id } ]`
894+ } )
897895 ) ;
898896 } else {
899897 expect ( node . color ) . equal (
@@ -906,7 +904,7 @@ export default function (providerContext: FtrProviderContext) {
906904 response . body . edges . forEach ( ( edge : EdgeDataModel ) => {
907905 expect ( edge ) . to . have . property ( 'color' ) ;
908906 expect ( edge . color ) . equal (
909- 'subdued ' ,
907+ 'danger ' ,
910908 `edge color mismatched [edge: ${ edge . id } ] [actual: ${ edge . color } ]`
911909 ) ;
912910 expect ( edge . type ) . equal ( 'solid' ) ;
You can’t perform that action at this time.
0 commit comments