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

Commit 31b2ae7

Browse files
committed
revert breaking changes
1 parent bbbcfd3 commit 31b2ae7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helpers/LSF/ImageView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export const ImageView = {
2727
cy.log(`Draw rectangle at (${x}, ${y}) of size ${width}x${height}`);
2828
this.drawingArea
2929
.scrollIntoView()
30-
.trigger('mousedown', x, y, { eventConstructor: 'MouseEvent', button: 1 })
31-
.trigger('mousemove', x + width, y + height, { eventConstructor: 'MouseEvent', button: 1 })
32-
.trigger('mouseup', x + width, y + height,{ eventConstructor: 'MouseEvent', button: 1 });
30+
.trigger('mousedown', x, y, { eventConstructor: 'MouseEvent' })
31+
.trigger('mousemove', x + width, y + height, { eventConstructor: 'MouseEvent' })
32+
.trigger('mouseup', x + width, y + height,{ eventConstructor: 'MouseEvent' });
3333
},
3434
/**
3535
* Captures a screenshot of an element to compare later

0 commit comments

Comments
 (0)