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) {
127
127
).as('getCreatedScheduleApi');
128
128
// Triggering the action that will fire the API call,
129
129
// 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
+ ]);
131
135
// Wait for the API call to complete if it was fired
132
136
// This is to ensure that the test does not fail if the request was not fired
133
137
cy.then(() => {
@@ -176,7 +180,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
176
180
cy.interceptApi({
177
181
alias: 'treeSelectApi',
178
182
urlPattern: /\/ops\/tree_select\?id=.*&text=.*/,
179
- triggerFn: () => cy.accordionItem(SCHEDULES_ACCORDION_ITEM),
183
+ triggerFn: () =>
184
+ cy.selectAccordionItem([
185
+ MANAGEIQ_REGION_ACCORDION_ITEM,
186
+ SCHEDULES_ACCORDION_ITEM,
187
+ ]),
180
188
});
181
189
});
182
190
You can’t perform that action at this time.
0 commit comments