@@ -17,6 +17,24 @@ describe('Cypress', () => {
17
17
18
18
cy . wait ( 12500 ) ;
19
19
20
+ cy . intercept (
21
+ 'GET' ,
22
+ `${ BASE_PATH } /api/reporting/getReportSource/dashboard`
23
+ ) . as ( 'dashboard' ) ;
24
+
25
+ cy . intercept (
26
+ 'GET' ,
27
+ `${ BASE_PATH } /api/reporting/getReportSource/visualization`
28
+ ) . as ( 'visualization' ) ;
29
+
30
+ cy . intercept ( 'GET' , `${ BASE_PATH } /api/reporting/getReportSource/search` ) . as (
31
+ 'search'
32
+ ) ;
33
+
34
+ cy . intercept ( 'GET' , `${ BASE_PATH } /api/observability/notebooks/` ) . as (
35
+ 'notebook'
36
+ ) ;
37
+
20
38
cy . get ( '#reportDefinitionDetailsLink' ) . first ( ) . click ( { force : true } ) ;
21
39
22
40
cy . get ( '#editReportDefinitionButton' ) . should ( 'exist' ) ;
@@ -26,14 +44,23 @@ describe('Cypress', () => {
26
44
cy . url ( ) . should ( 'include' , 'edit' ) ;
27
45
28
46
cy . wait ( 1000 ) ;
47
+ cy . wait ( '@dashboard' ) ;
48
+ cy . wait ( '@visualization' ) ;
49
+ cy . wait ( '@search' ) ;
50
+ cy . wait ( '@notebook' ) ;
29
51
30
52
// update the report name
31
- cy . get ( '#reportSettingsName' ) . type ( ' update name' ) ;
53
+ cy . get ( '#reportSettingsName' ) . type ( '{selectall}{backspace} update name' ) ;
32
54
33
55
// update report description
34
- cy . get ( '#reportSettingsDescription' ) . type ( ' update description' ) ;
56
+ cy . get ( '#reportSettingsDescription' ) . type (
57
+ '{selectall}{backspace} update description'
58
+ ) ;
35
59
36
- cy . get ( '#editReportDefinitionButton' ) . click ( { force : true } ) ;
60
+ cy . get ( '#editReportDefinitionButton' )
61
+ . contains ( 'Save Changes' )
62
+ . trigger ( 'mouseover' )
63
+ . click ( { force : true } ) ;
37
64
38
65
cy . wait ( 12500 ) ;
39
66
@@ -52,6 +79,24 @@ describe('Cypress', () => {
52
79
53
80
cy . wait ( 12500 ) ;
54
81
82
+ cy . intercept (
83
+ 'GET' ,
84
+ `${ BASE_PATH } /api/reporting/getReportSource/dashboard`
85
+ ) . as ( 'dashboard' ) ;
86
+
87
+ cy . intercept (
88
+ 'GET' ,
89
+ `${ BASE_PATH } /api/reporting/getReportSource/visualization`
90
+ ) . as ( 'visualization' ) ;
91
+
92
+ cy . intercept ( 'GET' , `${ BASE_PATH } /api/reporting/getReportSource/search` ) . as (
93
+ 'search'
94
+ ) ;
95
+
96
+ cy . intercept ( 'GET' , `${ BASE_PATH } /api/observability/notebooks/` ) . as (
97
+ 'notebook'
98
+ ) ;
99
+
55
100
cy . get ( '#reportDefinitionDetailsLink' ) . first ( ) . click ( ) ;
56
101
57
102
cy . get ( '#editReportDefinitionButton' ) . should ( 'exist' ) ;
@@ -61,12 +106,20 @@ describe('Cypress', () => {
61
106
cy . url ( ) . should ( 'include' , 'edit' ) ;
62
107
63
108
cy . wait ( 1000 ) ;
109
+
110
+ cy . wait ( '@dashboard' ) ;
111
+ cy . wait ( '@visualization' ) ;
112
+ cy . wait ( '@search' ) ;
113
+ cy . wait ( '@notebook' ) ;
64
114
cy . get ( '#reportDefinitionTriggerTypes > div:nth-child(2)' ) . click ( {
65
115
force : true ,
66
116
} ) ;
67
117
68
118
cy . get ( '#Schedule' ) . check ( { force : true } ) ;
69
- cy . get ( '#editReportDefinitionButton' ) . click ( { force : true } ) ;
119
+ cy . get ( '#editReportDefinitionButton' )
120
+ . contains ( 'Save Changes' )
121
+ . trigger ( 'mouseover' )
122
+ . click ( { force : true } ) ;
70
123
71
124
cy . wait ( 12500 ) ;
72
125
@@ -85,6 +138,24 @@ describe('Cypress', () => {
85
138
86
139
cy . wait ( 12500 ) ;
87
140
141
+ cy . intercept (
142
+ 'GET' ,
143
+ `${ BASE_PATH } /api/reporting/getReportSource/dashboard`
144
+ ) . as ( 'dashboard' ) ;
145
+
146
+ cy . intercept (
147
+ 'GET' ,
148
+ `${ BASE_PATH } /api/reporting/getReportSource/visualization`
149
+ ) . as ( 'visualization' ) ;
150
+
151
+ cy . intercept ( 'GET' , `${ BASE_PATH } /api/reporting/getReportSource/search` ) . as (
152
+ 'search'
153
+ ) ;
154
+
155
+ cy . intercept ( 'GET' , `${ BASE_PATH } /api/observability/notebooks/` ) . as (
156
+ 'notebook'
157
+ ) ;
158
+
88
159
cy . get ( '#reportDefinitionDetailsLink' ) . first ( ) . click ( ) ;
89
160
90
161
cy . get ( '#editReportDefinitionButton' ) . should ( 'exist' ) ;
@@ -95,11 +166,19 @@ describe('Cypress', () => {
95
166
96
167
cy . wait ( 1000 ) ;
97
168
169
+ cy . wait ( '@dashboard' ) ;
170
+ cy . wait ( '@visualization' ) ;
171
+ cy . wait ( '@search' ) ;
172
+ cy . wait ( '@notebook' ) ;
173
+
98
174
cy . get ( '#reportDefinitionTriggerTypes > div:nth-child(1)' ) . click ( {
99
175
force : true ,
100
176
} ) ;
101
177
102
- cy . get ( '#editReportDefinitionButton' ) . click ( { force : true } ) ;
178
+ cy . get ( '#editReportDefinitionButton' )
179
+ . contains ( 'Save Changes' )
180
+ . trigger ( 'mouseover' )
181
+ . click ( { force : true } ) ;
103
182
104
183
cy . wait ( 12500 ) ;
105
184
0 commit comments