fix(editor): Fix NDV close after using input select (#7544)

This commit is contained in:
Csaba Tuncsik
2023-10-30 13:44:19 +01:00
committed by GitHub
parent 784b43330b
commit 3b5e181e66
4 changed files with 14 additions and 3 deletions

View File

@@ -161,3 +161,10 @@ Cypress.Commands.add('draganddrop', (draggableSelector, droppableSelector) => {
}
});
});
Cypress.Commands.add('shouldNotHaveConsoleErrors', () => {
cy.window().then((win) => {
const spy = cy.spy(win.console, 'error');
cy.wrap(spy).should('not.have.been.called');
});
});

View File

@@ -37,6 +37,7 @@ declare global {
options?: { abs?: boolean; index?: number; realMouse?: boolean },
): void;
draganddrop(draggableSelector: string, droppableSelector: string): void;
shouldNotHaveConsoleErrors(): void;
}
}
}