regressify 1.2.18 → 1.2.19
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.
|
@@ -22,7 +22,11 @@ module.exports = async (page, scenario, viewport, isReference, browserContext) =
|
|
|
22
22
|
for (const stateName of stateNames) {
|
|
23
23
|
console.log(logPrefix + 'Restore:', stateName);
|
|
24
24
|
const states = getStorageState(stateName);
|
|
25
|
-
|
|
25
|
+
if (states) {
|
|
26
|
+
await browserContext.storageState(states);
|
|
27
|
+
} else {
|
|
28
|
+
console.error(logPrefix + 'State not found:', stateName);
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
};
|
package/common/test-schema.json
CHANGED
|
@@ -79,12 +79,14 @@
|
|
|
79
79
|
"restore": {
|
|
80
80
|
"oneOf": [
|
|
81
81
|
{
|
|
82
|
-
"type": "string"
|
|
82
|
+
"type": "string",
|
|
83
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
"type": "array",
|
|
86
87
|
"items": {
|
|
87
|
-
"type": "string"
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
]
|
|
@@ -155,17 +157,20 @@
|
|
|
155
157
|
]
|
|
156
158
|
},
|
|
157
159
|
"id": {
|
|
158
|
-
"type": "string"
|
|
160
|
+
"type": "string",
|
|
161
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
159
162
|
},
|
|
160
163
|
"needs": {
|
|
161
164
|
"oneOf": [
|
|
162
165
|
{
|
|
163
|
-
"type": "string"
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
164
168
|
},
|
|
165
169
|
{
|
|
166
170
|
"type": "array",
|
|
167
171
|
"items": {
|
|
168
|
-
"type": "string"
|
|
172
|
+
"type": "string",
|
|
173
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
]
|
|
@@ -662,7 +667,8 @@
|
|
|
662
667
|
"additionalProperties": false,
|
|
663
668
|
"properties": {
|
|
664
669
|
"persist": {
|
|
665
|
-
"type": "string"
|
|
670
|
+
"type": "string",
|
|
671
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
666
672
|
},
|
|
667
673
|
"frame": {
|
|
668
674
|
"oneOf": [
|