File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
cypress/e2e/ui/Settings/Application-Settings Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,21 @@ function invokeCleanupDeletion() {
63
63
} ) ;
64
64
}
65
65
66
+ function goToAppSettings ( ) {
67
+ cy . intercept ( 'GET' , '/api/notifications' ) . as ( 'getNotifications' ) ;
68
+ cy . intercept (
69
+ 'GET' ,
70
+ '/api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100'
71
+ ) . as ( 'getExpandedNotifications' ) ;
72
+ cy . menu ( 'Settings' , 'Application Settings' ) ;
73
+ cy . wait ( '@getNotifications' ) ;
74
+ cy . wait ( '@getExpandedNotifications' ) ;
75
+ }
76
+
66
77
describe ( 'Automate Schedule form operations: Settings > Application Settings > Settings > Schedules > Configuration > Add a new schedule' , ( ) => {
67
78
beforeEach ( ( ) => {
68
79
cy . login ( ) ;
69
- cy . menu ( 'Settings' , 'Application Settings' ) ;
80
+ goToAppSettings ( ) ;
70
81
cy . intercept ( 'POST' , '/ops/tree_select?id=xx-msc&text=Schedules' ) . as ( 'getSchedules' ) ;
71
82
cy . get ( '[title="Schedules"]' ) . click ( ) ;
72
83
cy . wait ( '@getSchedules' ) ;
@@ -329,7 +340,7 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
329
340
invokeCleanupDeletion ( ) ;
330
341
} else {
331
342
// Navigate to Settings -> Application-Settings before looking out for Schedules created during test
332
- cy . menu ( 'Settings' , 'Application Settings' ) ;
343
+ goToAppSettings ( ) ;
333
344
invokeCleanupDeletion ( ) ;
334
345
}
335
346
} ) ;
You can’t perform that action at this time.
0 commit comments