chore(tests): fix type issue
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -28,12 +28,12 @@ import { VueFlow } from '@vue-flow/core'
|
|||||||
import type { FlowProps } from '@vue-flow/core'
|
import type { FlowProps } from '@vue-flow/core'
|
||||||
|
|
||||||
const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => {
|
const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => {
|
||||||
cy.mount(VueFlow, {
|
cy.mount(VueFlow as any, {
|
||||||
props: {
|
props: {
|
||||||
id: 'test',
|
id: 'test',
|
||||||
fitViewOnInit: true,
|
fitViewOnInit: true,
|
||||||
...props,
|
...props,
|
||||||
},
|
} as FlowProps,
|
||||||
attrs: {
|
attrs: {
|
||||||
key: 'flowy',
|
key: 'flowy',
|
||||||
style: {
|
style: {
|
||||||
@@ -41,7 +41,7 @@ const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => {
|
|||||||
width: '100vw',
|
width: '100vw',
|
||||||
},
|
},
|
||||||
...attrs,
|
...attrs,
|
||||||
},
|
} as Record<string, any>,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user