Skip to content

Commit

Permalink
try to fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Oct 2, 2023
1 parent 2f7866c commit b26e9b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions platform/app/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,14 @@ Cypress.Commands.add('addLine', (viewport, firstClick, secondClick) => {
const [x2, y2] = secondClick;

// First click
performClick('@viewportAlias', x1, y1);
cy.get('@viewportAlias').then(() => {
performClick('@viewportAlias', x1, y1);
});

// Second click
performClick('@viewportAlias', x2, y2);
cy.get('@viewportAlias').then(() => {
performClick('@viewportAlias', x2, y2);
});

cy.wait(1000);
});
Expand Down

0 comments on commit b26e9b9

Please sign in to comment.