diff --git a/e2e/cypress/support/component.ts b/e2e/cypress/support/component.ts index 7b354d15..dd78d613 100644 --- a/e2e/cypress/support/component.ts +++ b/e2e/cypress/support/component.ts @@ -28,12 +28,12 @@ import { VueFlow } from '@vue-flow/core' import type { FlowProps } from '@vue-flow/core' const mountVueFlow = (props?: FlowProps, attrs?: Record) => { - cy.mount(VueFlow, { + cy.mount(VueFlow as any, { props: { id: 'test', fitViewOnInit: true, ...props, - }, + } as FlowProps, attrs: { key: 'flowy', style: { @@ -41,7 +41,7 @@ const mountVueFlow = (props?: FlowProps, attrs?: Record) => { width: '100vw', }, ...attrs, - }, + } as Record, }) }