@@ -6,6 +6,7 @@ const textConstants = {
66
77 // List items
88 schedulesAccordionItem : 'Schedules' ,
9+ manageIQRegionAccordItem : / ^ M a n a g e I Q R e g i o n : / ,
910
1011 // Field values
1112 initialScheduleName : 'Test-name' ,
@@ -243,7 +244,11 @@ function interceptGetScheduleDetailsApi(scheduleName = initialScheduleName) {
243244 ) . as ( 'getCreatedScheduleApi' ) ;
244245 // Triggering the action that will fire the API call,
245246 // which is selecting the created schedule
246- cy . accordionItem ( scheduleName ) ;
247+ cy . selectAccordionItem ( [
248+ manageIQRegionAccordItem ,
249+ schedulesAccordionItem ,
250+ scheduleName ,
251+ ] ) ;
247252 // Wait for the API call to complete if it was fired
248253 // This is to ensure that the test does not fail if the request was not fired
249254 cy . then ( ( ) => {
@@ -324,7 +329,7 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
324329 pathname : '/ops/tree_select' ,
325330 query : { text : schedulesAccordionItem } ,
326331 } ) . as ( 'getSchedules' ) ;
327- cy . accordionItem ( schedulesAccordionItem ) ;
332+ cy . selectAccordionItem ( [ manageIQRegionAccordItem , schedulesAccordionItem ] ) ;
328333 cy . wait ( '@getSchedules' ) ;
329334 } ) ;
330335
0 commit comments