File tree 1 file changed +6
-2
lines changed
cypress/integration/plugins/observability-dashboards
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ describe('Creating visualizations', () => {
41
41
} ) ;
42
42
43
43
it ( 'Create first visualization in event analytics' , ( ) => {
44
+ cy . intercept ( 'POST' , '**/api/saved_objects/observability-visualization' ) . as (
45
+ 'saveVisualization'
46
+ ) ;
44
47
cy . get ( '[id^=autocomplete-textarea]' ) . focus ( ) . type ( PPL_VISUALIZATIONS [ 0 ] , {
45
48
delay : 50 ,
46
49
} ) ;
@@ -64,8 +67,7 @@ describe('Creating visualizations', () => {
64
67
cy . get ( '[data-test-subj="eventExplorer__querySaveConfirm"]' )
65
68
. trigger ( 'mouseover' )
66
69
. click ( ) ;
67
- cy . wait ( delay ) ;
68
- cy . get ( '.euiToastHeader__title' ) . contains ( 'successfully' ) . should ( 'exist' ) ;
70
+ cy . wait ( '@saveVisualization' ) . its ( 'response.statusCode' ) . should ( 'eq' , 200 ) ;
69
71
} ) ;
70
72
} ) ;
71
73
@@ -112,6 +114,8 @@ describe('Testing panels table', () => {
112
114
} ) ;
113
115
114
116
it ( 'Deletes panels' , ( ) => {
117
+ cy . get ( '.euiTableRow' ) . should ( 'exist' ) ;
118
+ cy . get ( '[data-test-subj="globalLoadingIndicator"]' ) . should ( 'not.exist' ) ;
115
119
cy . get ( '.euiCheckbox__input[data-test-subj="checkboxSelectAll"]' )
116
120
. trigger ( 'mouseover' )
117
121
. click ( ) ;
You can’t perform that action at this time.
0 commit comments