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 ( ( ) => {
@@ -211,7 +215,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
211215 cy . interceptApi ( {
212216 alias : 'treeSelectApi' ,
213217 urlPattern : / \/ o p s \/ t r e e _ s e l e c t \? i d = .* & t e x t = .* / ,
214- triggerFn : ( ) => cy . accordionItem ( SCHEDULES_ACCORDION_ITEM ) ,
218+ triggerFn : ( ) =>
219+ cy . selectAccordionItem ( [
220+ MANAGEIQ_REGION_ACCORDION_ITEM ,
221+ SCHEDULES_ACCORDION_ITEM ,
222+ ] ) ,
215223 } ) ;
216224 } ) ;
217225
You can’t perform that action at this time.
0 commit comments