Skip to content

Commit 1c4c112

Browse files
Replaced accordionItem command with selectAccordionItem command
1 parent da36890 commit 1c4c112

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

0 commit comments

Comments
 (0)