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:
Mutasem Aldmour
2023-02-09 17:59:01 +03:00
committed by GitHub
parent 00befbc75a
commit b8980f6118
10 changed files with 393 additions and 68 deletions

View File

@@ -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);