Skip to content

Commit b00c16b

Browse files
Replaced accordionItem command with selectAccordionItem command
1 parent 48803a8 commit b00c16b

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(() => {
@@ -195,7 +199,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
195199
cy.interceptApi({
196200
alias: 'treeSelectApi',
197201
urlPattern: /\/ops\/tree_select\?id=.*&text=.*/,
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

0 commit comments

Comments
 (0)