@@ -25,12 +25,12 @@ function mountVueFlow(props?: FlowProps, attrs?: Record<string, any>, slots?: Re
2525 } )
2626}
2727
28- function useViewPort ( ) {
29- return cy . get ( '.vue-flow__viewport ' )
28+ function useZoomPane ( ) {
29+ return cy . get ( '.vue-flow__zoom-pane ' )
3030}
3131
32- function useTransformationPane ( ) {
33- return cy . get ( '.vue-flow__transformationpane ' )
32+ function useViewport ( ) {
33+ return cy . get ( '.vue-flow__viewport ' )
3434}
3535
3636function retry ( assertion : Function , { interval = 20 , timeout = 1000 } = { } ) {
@@ -95,8 +95,8 @@ declare global {
9595 interface Chainable {
9696 mount : typeof mount
9797 vueFlow : typeof mountVueFlow
98- viewPort : typeof useViewPort
99- transformationPane : typeof useTransformationPane
98+ viewPort : typeof useZoomPane
99+ transformationPane : typeof useViewport
100100 tryAssertion : typeof retry
101101 connect : typeof connect
102102 dragConnection : typeof dragConnection
@@ -108,9 +108,9 @@ Cypress.Commands.add('mount', mount)
108108
109109Cypress . Commands . add ( 'vueFlow' , mountVueFlow )
110110
111- Cypress . Commands . add ( 'viewPort' , useViewPort )
111+ Cypress . Commands . add ( 'viewPort' , useZoomPane )
112112
113- Cypress . Commands . add ( 'transformationPane' , useTransformationPane )
113+ Cypress . Commands . add ( 'transformationPane' , useViewport )
114114
115115Cypress . Commands . add ( 'tryAssertion' , retry )
116116
0 commit comments