/// /// /// import './commands'; import 'cypress-real-events/support'; import { mount } from 'cypress/react18'; import { XYPosition } from 'reactflow'; import 'reactflow/dist/style.css'; declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace Cypress { interface Chainable { mount: typeof mount; drag: (selector: string, toPosition: XYPosition) => Cypress.Chainable>; dragPane: ({ from, to }: { from: XYPosition; to: XYPosition }) => Cypress.Chainable>; zoomPane: (wheelDelta: number) => Cypress.Chainable>; isWithinViewport: () => Cypress.Chainable>; isOutsideViewport: () => Cypress.Chainable>; } } } Cypress.Commands.add('mount', mount);