@rettangoli/vt 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/common.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rettangoli/vt",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Rettangoli Visual Testing",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/common.js CHANGED
@@ -313,6 +313,12 @@ async function takeScreenshots(
313
313
  case "rclick":
314
314
  await page.mouse.click(Number(args[0]), Number(args[1]), { button: "right" });
315
315
  break;
316
+ case "mouseDown":
317
+ await page.mouse.down();
318
+ break;
319
+ case "mouseUp":
320
+ await page.mouse.up();
321
+ break;
316
322
  case "keypress":
317
323
  await page.keyboard.press(args[0]);
318
324
  break;