chore: Add e2e tests for Subworkflow Conversion (no-changelog) (#16220)

This commit is contained in:
Charlie Kolb
2025-06-11 14:30:35 +02:00
committed by GitHub
parent 3946e5c244
commit 21b84ef4e7
4 changed files with 373 additions and 1 deletions

View File

@@ -24,3 +24,19 @@ export const clearNotifications = () => {
}
});
};
// Clears notifications without asserting their existence
export const clearAnyNotifications = () => {
const notificationSelector = '.el-notification:has(.el-notification--success)';
cy.get('body')
.should('have.length.gte', 0)
.then(($body) => {
if ($body.find(notificationSelector).length) {
cy.get(notificationSelector).each(($el) => {
if ($el.find('.el-notification__closeBtn').length) {
cy.wrap($el).find('.el-notification__closeBtn').click({ force: true });
}
});
}
});
};