Skip to content

Commit 72dd98b

Browse files
committed
fix(tests): zoom action tests to check for containing str
1 parent f1abfc6 commit 72dd98b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

e2e/cypress/component/1-store/viewpane/setMaxZoom.cy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ describe('Store Action: `setMaxZoom`', () => {
2929
bubbles: true,
3030
})
3131

32-
cy.transformationPane().should('have.css', 'transform', 'matrix(2, 0, 0, 2, -800, -236)')
32+
cy.transformationPane().then(($el) => {
33+
const transform = $el.css('transform')
34+
expect(transform).to.contain('matrix(2,')
35+
})
3336
})
3437
})

e2e/cypress/component/1-store/viewpane/setMinZoom.cy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ describe('Store Action: `setMinZoom`', () => {
2929
bubbles: true,
3030
})
3131

32-
cy.transformationPane().should('have.css', 'transform', 'matrix(0.5, 0, 0, 0.5, -12.5, 128.5)')
32+
cy.transformationPane().then(($el) => {
33+
const transform = $el.css('transform')
34+
expect(transform).to.contain('matrix(0.5')
35+
})
3336
})
3437
})

0 commit comments

Comments
 (0)