Skip to content

Commit 8c2e598

Browse files
Replaced accordionItem command with selectAccordionItem command
1 parent 3bd333b commit 8c2e598

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
@@ -143,7 +143,11 @@ function clickScheduleItem(scheduleName) {
143143
).as('getCreatedScheduleApi');
144144
// Triggering the action that will fire the API call,
145145
// which is selecting the created schedule
146-
cy.accordionItem(scheduleName);
146+
cy.selectAccordionItem([
147+
MANAGEIQ_REGION_ACCORDION_ITEM,
148+
SCHEDULES_ACCORDION_ITEM,
149+
scheduleName,
150+
]);
147151
// Wait for the API call to complete if it was fired
148152
// This is to ensure that the test does not fail if the request was not fired
149153
cy.then(() => {
@@ -192,7 +196,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
192196
cy.interceptApi({
193197
alias: 'treeSelectApi',
194198
urlPattern: /\/ops\/tree_select\?id=.*&text=.*/,
195-
triggerFn: () => cy.accordionItem(SCHEDULES_ACCORDION_ITEM),
199+
triggerFn: () =>
200+
cy.selectAccordionItem([
201+
MANAGEIQ_REGION_ACCORDION_ITEM,
202+
SCHEDULES_ACCORDION_ITEM,
203+
]),
196204
});
197205
});
198206

0 commit comments

Comments
 (0)