fix(tests): zoom action tests to check for containing str
This commit is contained in:
@@ -29,6 +29,9 @@ describe('Store Action: `setMaxZoom`', () => {
|
|||||||
bubbles: true,
|
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,')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ describe('Store Action: `setMinZoom`', () => {
|
|||||||
bubbles: true,
|
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')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user