Skip to content

Commit ce4db46

Browse files
Replaced accordionItem with selectAccordionItem cypress-command
1 parent 5836762 commit ce4db46

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cypress/e2e/ui/Settings/Application-Settings/schedule.cy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const textConstants = {
77

88
// List items
99
schedulesAccordionItem: 'Schedules',
10+
manageIQRegionAccordItem: /^ManageIQ Region:/,
1011

1112
// Field values
1213
initialScheduleName: 'Test-name',
@@ -232,7 +233,11 @@ function interceptGetScheduleDetailsApi(scheduleName = initialScheduleName) {
232233
).as('getCreatedScheduleApi');
233234
// Triggering the action that will fire the API call,
234235
// which is selecting the created schedule
235-
cy.accordionItem(scheduleName);
236+
cy.selectAccordionItem([
237+
manageIQRegionAccordItem,
238+
schedulesAccordionItem,
239+
scheduleName,
240+
]);
236241
// Wait for the API call to complete if it was fired
237242
// This is to ensure that the test does not fail if the request was not fired
238243
cy.then(() => {

0 commit comments

Comments
 (0)