chore(tests): correct viewport test
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+3
-4
@@ -3,7 +3,7 @@ import { getElements } from '../../utils'
|
|||||||
|
|
||||||
const { nodes } = getElements()
|
const { nodes } = getElements()
|
||||||
|
|
||||||
describe('Viewpane drag / zoom', () => {
|
describe('Viewport drag / zoom', () => {
|
||||||
const store = useVueFlow({ id: 'test' })
|
const store = useVueFlow({ id: 'test' })
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.vueFlow({
|
cy.vueFlow({
|
||||||
@@ -13,7 +13,6 @@ describe('Viewpane drag / zoom', () => {
|
|||||||
|
|
||||||
it('drags pane', () => {
|
it('drags pane', () => {
|
||||||
cy.window().then(async (win) => {
|
cy.window().then(async (win) => {
|
||||||
const initialViewport = store.viewport.value
|
|
||||||
cy.get('.vue-flow__pane')
|
cy.get('.vue-flow__pane')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.trigger('mousedown', 'center', { force: true, view: win })
|
.trigger('mousedown', 'center', { force: true, view: win })
|
||||||
@@ -26,8 +25,8 @@ describe('Viewpane drag / zoom', () => {
|
|||||||
.trigger('mouseup', { force: true, view: win })
|
.trigger('mouseup', { force: true, view: win })
|
||||||
|
|
||||||
await cy.tryAssertion(() => {
|
await cy.tryAssertion(() => {
|
||||||
cy.get('.vue-flow__transformationpane')
|
cy.transformationPane()
|
||||||
.should('be.visible')
|
.should('exist')
|
||||||
.should(
|
.should(
|
||||||
'have.css',
|
'have.css',
|
||||||
'transform',
|
'transform',
|
||||||
Reference in New Issue
Block a user