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 @@ -162,7 +162,11 @@ function clickScheduleItem(scheduleName) {
162162 ) . as ( 'getCreatedScheduleApi' ) ;
163163 // Triggering the action that will fire the API call,
164164 // which is selecting the created schedule
165- cy . accordionItem ( scheduleName ) ;
165+ cy . selectAccordionItem ( [
166+ MANAGEIQ_REGION_ACCORDION_ITEM ,
167+ SCHEDULES_ACCORDION_ITEM ,
168+ scheduleName ,
169+ ] ) ;
166170 // Wait for the API call to complete if it was fired
167171 // This is to ensure that the test does not fail if the request was not fired
168172 cy . then ( ( ) => {
@@ -195,7 +199,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
195199 cy . interceptApi ( {
196200 alias : 'treeSelectApi' ,
197201 urlPattern : / \/ o p s \/ t r e e _ s e l e c t \? i d = .* & t e x t = .* / ,
198- triggerFn : ( ) => cy . accordionItem ( SCHEDULES_ACCORDION_ITEM ) ,
202+ triggerFn : ( ) =>
203+ cy . selectAccordionItem ( [
204+ MANAGEIQ_REGION_ACCORDION_ITEM ,
205+ SCHEDULES_ACCORDION_ITEM ,
206+ ] ) ,
199207 } ) ;
200208 } ) ;
201209
You can’t perform that action at this time.
0 commit comments