tests: add additional components tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<script setup>
|
||||
import { Controls, VueFlow } from '@braks/vue-flow'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VueFlow>
|
||||
<Controls />
|
||||
</VueFlow>
|
||||
</template>
|
||||
@@ -0,0 +1,18 @@
|
||||
import App from './App.vue'
|
||||
|
||||
describe('Render Controls', () => {
|
||||
beforeEach(() => {
|
||||
cy.mount(App, {
|
||||
attrs: {
|
||||
style: {
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
it('renders controls', () => {
|
||||
cy.get('.vue-flow__controls').should('exist')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user