mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
chore: Add e2e tests for Subworkflow Conversion (no-changelog) (#16220)
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user