File tree 1 file changed +6
-4
lines changed
cypress/integration/plugins/observability-dashboards
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ describe('Creating visualizations', () => {
41
41
} ) ;
42
42
43
43
it ( 'Create first visualization in event analytics' , ( ) => {
44
+ cy . intercept (
45
+ 'POST' ,
46
+ '/_dashboards/api/observability/event_analytics/saved_objects/vis'
47
+ ) . as ( 'savedVisFetch' ) ;
48
+ cy . intercept ( 'POST' , '/_dashboards/api/ppl/search' ) . as ( 'searchFinished' ) ;
44
49
cy . get ( '[id^=autocomplete-textarea]' ) . focus ( ) . type ( PPL_VISUALIZATIONS [ 0 ] , {
45
50
delay : 50 ,
46
51
} ) ;
@@ -52,6 +57,7 @@ describe('Creating visualizations', () => {
52
57
. trigger ( 'mouseover' )
53
58
. click ( ) ;
54
59
cy . wait ( delay * 2 ) ;
60
+ cy . wait ( '@searchFinished' ) ;
55
61
cy . get ( '[data-test-subj="eventExplorer__saveManagementPopover"]' )
56
62
. trigger ( 'mouseover' )
57
63
. click ( ) ;
@@ -61,10 +67,6 @@ describe('Creating visualizations', () => {
61
67
. type ( PPL_VISUALIZATIONS_NAMES [ 0 ] , {
62
68
delay : 50 ,
63
69
} ) ;
64
- cy . intercept (
65
- 'POST' ,
66
- '/_dashboards/api/observability/event_analytics/saved_objects/vis'
67
- ) . as ( 'savedVisFetch' ) ;
68
70
cy . get ( '[data-test-subj="eventExplorer__querySaveConfirm"]' )
69
71
. trigger ( 'mouseover' )
70
72
. click ( ) ;
You can’t perform that action at this time.
0 commit comments