@rettangoli/vt 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rettangoli/vt",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Rettangoli Visual Testing",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -48,6 +48,10 @@ async function move(page, args) {
48
48
  await page.mouse.move(Number(args[0]), Number(args[1]));
49
49
  }
50
50
 
51
+ async function scroll(page, args){
52
+ await page.mouse.wheel(Number(args[0]), Number(args[1]));
53
+ }
54
+
51
55
  async function rclick(page, args, context, selectedElement) {
52
56
  if (selectedElement) {
53
57
  await selectedElement.click({ button: 'right' });
@@ -106,6 +110,7 @@ export function createSteps(page, context) {
106
110
  mouseUp,
107
111
  move,
108
112
  rclick,
113
+ scroll,
109
114
  rMouseDown,
110
115
  rMouseUp,
111
116
  screenshot,