fix(cypress): use wait for drag handlers

This commit is contained in:
moklick
2022-04-28 23:49:56 +02:00
parent ebf2a66639
commit 8a7bc49c79
7 changed files with 49 additions and 34 deletions
@@ -125,6 +125,7 @@ describe('Interaction Flow Rendering', () => {
cy.get('.react-flow__pane')
.trigger('wheel', 'topLeft', { deltaY: 200 })
.wait(50)
.then(() => {
const styleAfterZoom = Cypress.$('.react-flow__viewport').css('transform');
expect(styleBeforeZoom).not.to.equal(styleAfterZoom);
@@ -141,6 +142,7 @@ describe('Interaction Flow Rendering', () => {
cy.get('.react-flow__pane')
.dblclick()
.wait(50)
.then(() => {
const styleAfterZoom = Cypress.$('.react-flow__viewport').css('transform');
expect(styleBeforeZoom).not.to.equal(styleAfterZoom);