mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test: Add more data mapping tests (#5389)
* test: Add more data mapping tests * test: add tests for preview mapping * test: update wording * test: add more tests * test: fix up prev node test * test: stop popup * test: add mapping test for paths * test: revert back param changes * test: fix mapping tests * test: reset db * test: fix up mapping tests * test: fix up mapping tests * test: update tests to be more stable * chore: clean up unused command * fix: fix up before unload bug * fix: fix data transformation tests * test: fix up flaky webhook tests * test: fix up flaky webhook tests * test: fix up flaky dt tests
This commit is contained in:
@@ -2536,7 +2536,10 @@ export default mixins(
|
||||
this.uiStore.nodeViewInitialized = true;
|
||||
document.addEventListener('keydown', this.keyDown);
|
||||
document.addEventListener('keyup', this.keyUp);
|
||||
window.addEventListener('beforeunload', (e) => {
|
||||
|
||||
// allow to be overriden in e2e tests
|
||||
// @ts-ignore
|
||||
window.onBeforeUnload = (e) => {
|
||||
if (this.isDemo) {
|
||||
return;
|
||||
} else if (this.uiStore.stateIsDirty) {
|
||||
@@ -2549,7 +2552,8 @@ export default mixins(
|
||||
this.startLoading(this.$locale.baseText('nodeView.redirecting'));
|
||||
return;
|
||||
}
|
||||
});
|
||||
};
|
||||
window.addEventListener('beforeunload', window.onBeforeUnload);
|
||||
},
|
||||
getOutputEndpointUUID(nodeName: string, index: number): string | null {
|
||||
const node = this.workflowsStore.getNodeByName(nodeName);
|
||||
|
||||
Reference in New Issue
Block a user