mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test(editor): Prevent node view unload by default in e2e run (#6787)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
@@ -115,9 +115,13 @@ export class WorkflowPage extends BasePage {
|
||||
editorTabButton: () => cy.getByTestId('radio-button-workflow'),
|
||||
};
|
||||
actions = {
|
||||
visit: () => {
|
||||
visit: (preventNodeViewUnload = true) => {
|
||||
cy.visit(this.url);
|
||||
cy.waitForLoad();
|
||||
cy.window().then((win) => {
|
||||
// @ts-ignore
|
||||
win.preventNodeViewBeforeUnload = preventNodeViewUnload;
|
||||
});
|
||||
},
|
||||
addInitialNodeToCanvas: (nodeDisplayName: string, { keepNdvOpen } = { keepNdvOpen: false }) => {
|
||||
this.getters.canvasPlusButton().click();
|
||||
|
||||
Reference in New Issue
Block a user