tests: properly check element transforms

This commit is contained in:
braks
2022-10-13 23:23:43 +02:00
committed by Braks
parent 5aa94e2e13
commit e0016db07a
3 changed files with 25 additions and 10 deletions
@@ -29,9 +29,10 @@ describe('Store Action: `setMinZoom`', () => {
bubbles: true,
})
cy.transformationPane().then(($el) => {
const transform = $el.css('transform')
expect(transform).to.contain('matrix(0.5')
})
cy.transformationPane().should(
'have.css',
'transform',
`matrix(${store.viewport.value.zoom}, 0, 0, ${store.viewport.value.zoom}, ${store.viewport.value.x}, ${store.viewport.value.y})`,
)
})
})