@@ -7,6 +7,7 @@ const textConstants = {
7
7
8
8
// List items
9
9
schedulesAccordionItem : 'Schedules' ,
10
+ manageIQRegionAccordItem : / ^ M a n a g e I Q R e g i o n : / ,
10
11
11
12
// Field values
12
13
initialScheduleName : 'Test-name' ,
@@ -231,7 +232,11 @@ function interceptGetScheduleDetailsApi(scheduleName = initialScheduleName) {
231
232
) . as ( 'getCreatedScheduleApi' ) ;
232
233
// Triggering the action that will fire the API call,
233
234
// which is selecting the created schedule
234
- cy . accordionItem ( scheduleName ) ;
235
+ cy . selectAccordionItem ( [
236
+ manageIQRegionAccordItem ,
237
+ schedulesAccordionItem ,
238
+ scheduleName ,
239
+ ] ) ;
235
240
// Wait for the API call to complete if it was fired
236
241
// This is to ensure that the test does not fail if the request was not fired
237
242
cy . then ( ( ) => {
@@ -312,7 +317,7 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
312
317
pathname : '/ops/tree_select' ,
313
318
query : { text : schedulesAccordionItem } ,
314
319
} ) . as ( 'getSchedules' ) ;
315
- cy . accordionItem ( schedulesAccordionItem ) ;
320
+ cy . selectAccordionItem ( [ manageIQRegionAccordItem , schedulesAccordionItem ] ) ;
316
321
cy . wait ( '@getSchedules' ) ;
317
322
} ) ;
318
323
0 commit comments