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