mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Fix workflow moving E2E tests (#13396)
Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
@@ -13,10 +13,12 @@ export const infoToast = () => cy.get('.el-notification:has(.el-notification--in
|
||||
* Actions
|
||||
*/
|
||||
export const clearNotifications = () => {
|
||||
const buttons = successToast().find('.el-notification__closeBtn');
|
||||
buttons.then(($buttons) => {
|
||||
if ($buttons.length) {
|
||||
buttons.click({ multiple: true });
|
||||
const notificationSelector = '.el-notification:has(.el-notification--success)';
|
||||
cy.get('body').then(($body) => {
|
||||
if ($body.find(notificationSelector).length) {
|
||||
cy.get(notificationSelector)
|
||||
.find('.el-notification__closeBtn')
|
||||
.click({ multiple: true, force: true });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user