test(editor): Enable adding nodes in between any two nodes on canvas in e2e tests (no-changelog) (#5393)

*  Adding source and target test data to connection HTML elements
*  Using new action to add node on the connection
* 🔥 Removing leftover log
* 🔥 Removing leftover test action
* 👌 Refactoring to address PR feedback
This commit is contained in:
Milorad FIlipović
2023-02-07 16:34:08 +01:00
committed by GitHub
parent 7e2f2f7453
commit d05203db30
5 changed files with 46 additions and 14 deletions

View File

@@ -2182,6 +2182,15 @@ export default mixins(
});
},
);
setTimeout(() => {
NodeViewUtils.addConnectionTestData(
info.source,
info.target,
'canvas' in info.connection.connector
? (info.connection.connector.canvas as HTMLElement)
: undefined,
);
}, 0);
}
} catch (e) {
console.error(e); // eslint-disable-line no-console