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 @@ -144,7 +144,11 @@ function clickScheduleItem(scheduleName) {
144144 ) . as ( 'getCreatedScheduleApi' ) ;
145145 // Triggering the action that will fire the API call,
146146 // which is selecting the created schedule
147- cy . accordionItem ( scheduleName ) ;
147+ cy . selectAccordionItem ( [
148+ MANAGEIQ_REGION_ACCORDION_ITEM ,
149+ SCHEDULES_ACCORDION_ITEM ,
150+ scheduleName ,
151+ ] ) ;
148152 // Wait for the API call to complete if it was fired
149153 // This is to ensure that the test does not fail if the request was not fired
150154 cy . then ( ( ) => {
@@ -193,7 +197,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
193197 cy . interceptApi ( {
194198 alias : 'treeSelectApi' ,
195199 urlPattern : / \/ o p s \/ t r e e _ s e l e c t \? i d = .* & t e x t = .* / ,
196- triggerFn : ( ) => cy . accordionItem ( SCHEDULES_ACCORDION_ITEM ) ,
200+ triggerFn : ( ) =>
201+ cy . selectAccordionItem ( [
202+ MANAGEIQ_REGION_ACCORDION_ITEM ,
203+ SCHEDULES_ACCORDION_ITEM ,
204+ ] ) ,
197205 } ) ;
198206 } ) ;
199207
You can’t perform that action at this time.
0 commit comments