Skip to content

Commit ec95d4a

Browse files
Replaced accordionItem command with selectAccordionItem command
1 parent f4e29ee commit ec95d4a

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
@@ -127,7 +127,11 @@ function clickScheduleItem(scheduleName) {
127127
).as('getCreatedScheduleApi');
128128
// Triggering the action that will fire the API call,
129129
// 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+
]);
131135
// Wait for the API call to complete if it was fired
132136
// This is to ensure that the test does not fail if the request was not fired
133137
cy.then(() => {
@@ -176,7 +180,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
176180
cy.interceptApi({
177181
alias: 'treeSelectApi',
178182
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+
]),
180188
});
181189
});
182190

0 commit comments

Comments
 (0)