fix(tests): zoom action tests to check for containing str

This commit is contained in:
braks
2022-10-07 22:00:32 +02:00
committed by Braks
parent f1abfc6ac0
commit 72dd98b464
2 changed files with 8 additions and 2 deletions

View File

@@ -29,6 +29,9 @@ describe('Store Action: `setMaxZoom`', () => {
bubbles: true,
})
cy.transformationPane().should('have.css', 'transform', 'matrix(2, 0, 0, 2, -800, -236)')
cy.transformationPane().then(($el) => {
const transform = $el.css('transform')
expect(transform).to.contain('matrix(2,')
})
})
})

View File

@@ -29,6 +29,9 @@ describe('Store Action: `setMinZoom`', () => {
bubbles: true,
})
cy.transformationPane().should('have.css', 'transform', 'matrix(0.5, 0, 0, 0.5, -12.5, 128.5)')
cy.transformationPane().then(($el) => {
const transform = $el.css('transform')
expect(transform).to.contain('matrix(0.5')
})
})
})