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
@@ -84,11 +84,7 @@ describe('Check if nodes can be connected', () => {
store.connectOnClick.value = true
beforeEach(() => {
const sourceHandle = cy.get(`[data-nodeid="1"].source`)
const targetHandle = cy.get(`[data-nodeid="2"].target`)
sourceHandle.click()
targetHandle.click()
cy.connect('1', '2')
cy.get('.vue-flow__edge').should('have.length', 1)
})