@@ -6,6 +6,7 @@ const textConstants = {
6
6
7
7
// List items
8
8
schedulesAccordionItem : 'Schedules' ,
9
+ manageIQRegionAccordItem : / ^ M a n a g e I Q R e g i o n : / ,
9
10
10
11
// Field values
11
12
initialScheduleName : 'Test-name' ,
@@ -243,7 +244,11 @@ function interceptGetScheduleDetailsApi(scheduleName = initialScheduleName) {
243
244
) . as ( 'getCreatedScheduleApi' ) ;
244
245
// Triggering the action that will fire the API call,
245
246
// which is selecting the created schedule
246
- cy . accordionItem ( scheduleName ) ;
247
+ cy . selectAccordionItem ( [
248
+ manageIQRegionAccordItem ,
249
+ schedulesAccordionItem ,
250
+ scheduleName ,
251
+ ] ) ;
247
252
// Wait for the API call to complete if it was fired
248
253
// This is to ensure that the test does not fail if the request was not fired
249
254
cy . then ( ( ) => {
@@ -324,7 +329,7 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
324
329
pathname : '/ops/tree_select' ,
325
330
query : { text : schedulesAccordionItem } ,
326
331
} ) . as ( 'getSchedules' ) ;
327
- cy . accordionItem ( schedulesAccordionItem ) ;
332
+ cy . selectAccordionItem ( [ manageIQRegionAccordItem , schedulesAccordionItem ] ) ;
328
333
cy . wait ( '@getSchedules' ) ;
329
334
} ) ;
330
335
0 commit comments