tests: add isValidConnection prop test

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-08 16:32:11 +01:00
committed by Braks
parent c74382fe1d
commit 929e2b5d04
4 changed files with 98 additions and 34 deletions
@@ -37,9 +37,9 @@ describe('Check if edges are updatable', () => {
it('updates edge', () => {
cy.window().then((win) => {
const edgeAnchor = cy.get('.vue-flow__edgeupdater[data-type="target"]')
const targetTargetHandle = cy.get(`[data-nodeid="3"].target`)
const targetHandle = cy.get(`[data-nodeid="3"].target`)
targetTargetHandle.then(async (handle) => {
targetHandle.then(async (handle) => {
const target = handle[0]
const { x, y } = target.getBoundingClientRect()