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 @@ -127,7 +127,11 @@ function clickScheduleItem(scheduleName) {
127127 ) . as ( 'getCreatedScheduleApi' ) ;
128128 // Triggering the action that will fire the API call,
129129 // which is selecting the created schedule
130- cy . accordionItem ( scheduleName ) ;
130+ cy . selectAccordionItem ( [
131+ MANAGEIQ_REGION_ACCORDION_ITEM ,
132+ SCHEDULES_ACCORDION_ITEM ,
133+ scheduleName ,
134+ ] ) ;
131135 // Wait for the API call to complete if it was fired
132136 // This is to ensure that the test does not fail if the request was not fired
133137 cy . then ( ( ) => {
@@ -176,7 +180,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
176180 cy . interceptApi ( {
177181 alias : 'treeSelectApi' ,
178182 urlPattern : / \/ o p s \/ t r e e _ s e l e c t \? i d = .* & t e x t = .* / ,
179- triggerFn : ( ) => cy . accordionItem ( SCHEDULES_ACCORDION_ITEM ) ,
183+ triggerFn : ( ) =>
184+ cy . selectAccordionItem ( [
185+ MANAGEIQ_REGION_ACCORDION_ITEM ,
186+ SCHEDULES_ACCORDION_ITEM ,
187+ ] ) ,
180188 } ) ;
181189 } ) ;
182190
You can’t perform that action at this time.
0 commit comments