regressify 1.2.28 → 1.2.30

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.
@@ -49,6 +49,11 @@ module.exports = async (context) => {
49
49
  el.focus();
50
50
  }
51
51
 
52
+ if (!!action.goto) {
53
+ console.log(logPrefix + 'Goto:', action.goto);
54
+ await page.goto(action.goto);
55
+ }
56
+
52
57
  if (!!action.hide) {
53
58
  console.log(logPrefix + 'Hide:', action.hide);
54
59
  await page.waitForSelector(action.hide);
@@ -108,7 +108,8 @@
108
108
  "type": "string"
109
109
  },
110
110
  "label": {
111
- "type": "string"
111
+ "type": "string",
112
+ "pattern": "^[a-z0-9_-]+$"
112
113
  },
113
114
  "description": {
114
115
  "type": "string"
@@ -188,6 +189,9 @@
188
189
  {
189
190
  "$ref": "#/definitions/ClickAction"
190
191
  },
192
+ {
193
+ "$ref": "#/definitions/GoToAction"
194
+ },
191
195
  {
192
196
  "$ref": "#/definitions/HideAction"
193
197
  },
@@ -287,7 +291,10 @@
287
291
  }
288
292
  ]
289
293
  }
290
- }
294
+ },
295
+ "required": [
296
+ "check"
297
+ ]
291
298
  },
292
299
  "ClickAction": {
293
300
  "type": "object",
@@ -309,7 +316,10 @@
309
316
  }
310
317
  ]
311
318
  }
312
- }
319
+ },
320
+ "required": [
321
+ "click"
322
+ ]
313
323
  },
314
324
  "HideAction": {
315
325
  "type": "object",
@@ -336,6 +346,31 @@
336
346
  "hide"
337
347
  ]
338
348
  },
349
+ "GotoAction": {
350
+ "type": "object",
351
+ "additionalProperties": false,
352
+ "properties": {
353
+ "goto": {
354
+ "type": "string"
355
+ },
356
+ "frame": {
357
+ "oneOf": [
358
+ {
359
+ "type": "string"
360
+ },
361
+ {
362
+ "type": "array",
363
+ "items": {
364
+ "type": "string"
365
+ }
366
+ }
367
+ ]
368
+ }
369
+ },
370
+ "required": [
371
+ "goto"
372
+ ]
373
+ },
339
374
  "HoverAction": {
340
375
  "type": "object",
341
376
  "additionalProperties": false,
@@ -612,7 +647,10 @@
612
647
  }
613
648
  ]
614
649
  }
615
- }
650
+ },
651
+ "required": [
652
+ "uncheck"
653
+ ]
616
654
  },
617
655
  "WaitAction": {
618
656
  "type": "object",
@@ -670,7 +708,10 @@
670
708
  }
671
709
  ]
672
710
  }
673
- }
711
+ },
712
+ "required": [
713
+ "persist"
714
+ ]
674
715
  }
675
716
  }
676
717
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "regressify",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "description": "Visual regression tests support",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",