File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
cypress/e2e/ui/Settings/Application-Settings Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,11 @@ function clickScheduleItem(scheduleName) {
143
143
) . as ( 'getCreatedScheduleApi' ) ;
144
144
// Triggering the action that will fire the API call,
145
145
// which is selecting the created schedule
146
- cy . accordionItem ( scheduleName ) ;
146
+ cy . selectAccordionItem ( [
147
+ MANAGEIQ_REGION_ACCORDION_ITEM ,
148
+ SCHEDULES_ACCORDION_ITEM ,
149
+ scheduleName ,
150
+ ] ) ;
147
151
// Wait for the API call to complete if it was fired
148
152
// This is to ensure that the test does not fail if the request was not fired
149
153
cy . then ( ( ) => {
@@ -192,7 +196,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
192
196
cy . interceptApi ( {
193
197
alias : 'treeSelectApi' ,
194
198
urlPattern : / \/ o p s \/ t r e e _ s e l e c t \? i d = .* & t e x t = .* / ,
195
- triggerFn : ( ) => cy . accordionItem ( SCHEDULES_ACCORDION_ITEM ) ,
199
+ triggerFn : ( ) =>
200
+ cy . selectAccordionItem ( [
201
+ MANAGEIQ_REGION_ACCORDION_ITEM ,
202
+ SCHEDULES_ACCORDION_ITEM ,
203
+ ] ) ,
196
204
} ) ;
197
205
} ) ;
198
206
You can’t perform that action at this time.
0 commit comments