tests: update min/max zoom tests
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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`', () => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user