tests: update min/max zoom tests

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-22 20:20:11 +01:00
committed by Braks
parent 4164ae5a67
commit 12845eb7e2
2 changed files with 9 additions and 7 deletions
@@ -20,7 +20,7 @@ describe('Store Action: `setMaxZoom`', () => {
expect(store.maxZoom.value).to.eq(2) expect(store.maxZoom.value).to.eq(2)
}) })
it('sets max-zoom in viewpane', async () => { it('sets max-zoom in viewpane', () => {
cy.viewPort().trigger('wheel', { cy.viewPort().trigger('wheel', {
deltaY: -10000, deltaY: -10000,
wheelDelta: 0, wheelDelta: 0,
@@ -29,7 +29,7 @@ describe('Store Action: `setMaxZoom`', () => {
bubbles: true, bubbles: true,
}) })
await cy.tryAssertion(() => { cy.tryAssertion(() => {
cy.transformationPane().should( cy.transformationPane().should(
'have.css', 'have.css',
'transform', 'transform',
@@ -29,6 +29,7 @@ describe('Store Action: `setMinZoom`', () => {
bubbles: true, bubbles: true,
}) })
cy.tryAssertion(() => {
cy.transformationPane().should( cy.transformationPane().should(
'have.css', 'have.css',
'transform', 'transform',
@@ -36,3 +37,4 @@ describe('Store Action: `setMinZoom`', () => {
) )
}) })
}) })
})