Skip to content

Commit 0c88699

Browse files
Replaced accordionItem command with selectAccordionItem command
1 parent 6877217 commit 0c88699

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
@@ -126,7 +126,11 @@ function clickScheduleItem(scheduleName) {
126126
).as('getCreatedScheduleApi');
127127
// Triggering the action that will fire the API call,
128128
// which is selecting the created schedule
129-
cy.accordionItem(scheduleName);
129+
cy.selectAccordionItem([
130+
MANAGEIQ_REGION_ACCORDION_ITEM,
131+
SCHEDULES_ACCORDION_ITEM,
132+
scheduleName,
133+
]);
130134
// Wait for the API call to complete if it was fired
131135
// This is to ensure that the test does not fail if the request was not fired
132136
cy.then(() => {
@@ -175,7 +179,11 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
175179
cy.interceptApi({
176180
alias: 'treeSelectApi',
177181
urlPattern: /\/ops\/tree_select\?id=.*&text=.*/,
178-
triggerFn: () => cy.accordionItem(SCHEDULES_ACCORDION_ITEM),
182+
triggerFn: () =>
183+
cy.selectAccordionItem([
184+
MANAGEIQ_REGION_ACCORDION_ITEM,
185+
SCHEDULES_ACCORDION_ITEM,
186+
]),
179187
});
180188
});
181189

0 commit comments

Comments
 (0)