feat(tests): add tests for add, find & remove actions

This commit is contained in:
braks
2022-10-07 22:55:38 +02:00
committed by Braks
parent e81bea1637
commit 9f59be7afa
10 changed files with 273 additions and 108 deletions
+2 -12
View File
@@ -1,21 +1,11 @@
import { VueFlow } from '@braks/vue-flow'
import { getElements } from '../../utils'
const { nodes, edges } = getElements()
describe('render Vue Flow', () => {
beforeEach(() => {
cy.mount(VueFlow, {
props: {
modelValue: [...nodes, ...edges],
},
attrs: {
key: 'flowy',
style: {
height: '100vh',
width: '100vw',
},
},
cy.vueFlow({
modelValue: [...nodes, ...edges],
})
})