Skip to content

Commit b25ee46

Browse files
Replaced accordionItem command with selectAccordionItem command
1 parent 49fbefb commit b25ee46

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

cypress/e2e/ui/Settings/Application-Settings/schedule.cy.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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: /\/ops\/tree_select\?id=.*&text=.*/,
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

0 commit comments

Comments
 (0)