Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
revert breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gondragos committed May 26, 2023
1 parent bbbcfd3 commit 31b2ae7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/LSF/ImageView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const ImageView = {
cy.log(`Draw rectangle at (${x}, ${y}) of size ${width}x${height}`);
this.drawingArea
.scrollIntoView()
.trigger('mousedown', x, y, { eventConstructor: 'MouseEvent', button: 1 })
.trigger('mousemove', x + width, y + height, { eventConstructor: 'MouseEvent', button: 1 })
.trigger('mouseup', x + width, y + height,{ eventConstructor: 'MouseEvent', button: 1 });
.trigger('mousedown', x, y, { eventConstructor: 'MouseEvent' })
.trigger('mousemove', x + width, y + height, { eventConstructor: 'MouseEvent' })
.trigger('mouseup', x + width, y + height,{ eventConstructor: 'MouseEvent' });
},
/**
* Captures a screenshot of an element to compare later
Expand Down

0 comments on commit 31b2ae7

Please sign in to comment.