feat(tests): add set min/max zoom action tests

This commit is contained in:
braks
2022-10-07 22:55:38 +02:00
committed by Braks
parent e3327ebea3
commit 3770083618
3 changed files with 78 additions and 0 deletions
+10
View File
@@ -45,6 +45,10 @@ const mountVueFlow = (props?: FlowProps, attrs?: Record<string, any>) => {
})
}
const useViewPort = () => cy.get('.vue-flow__viewport')
const useTransformationPane = () => cy.get('.vue-flow__transformationpane')
// Augment the Cypress namespace to include type definitions for
// your custom command.
// Alternatively, can be defined in cypress/support/component.d.ts
@@ -54,6 +58,8 @@ declare global {
interface Chainable {
mount: typeof mount
vueFlow: typeof mountVueFlow
viewPort: typeof useViewPort
transformationPane: typeof useTransformationPane
}
}
}
@@ -62,5 +68,9 @@ Cypress.Commands.add('mount', mount)
Cypress.Commands.add('vueFlow', mountVueFlow)
Cypress.Commands.add('viewPort', useViewPort)
Cypress.Commands.add('transformationPane', useTransformationPane)
// Example use:
// cy.mount(MyComponent)