@percy/core 1.27.6-beta.0 → 1.27.6-beta.1
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/dist/config.js +19 -0
- package/dist/discovery.js +1 -0
- package/dist/utils.js +2 -1
- package/package.json +7 -7
- package/types/index.d.ts +5 -0
package/dist/config.js
CHANGED
|
@@ -59,6 +59,15 @@ export const configSchema = {
|
|
|
59
59
|
scope: {
|
|
60
60
|
type: 'string'
|
|
61
61
|
},
|
|
62
|
+
scopeOptions: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
additionalProperties: false,
|
|
65
|
+
properties: {
|
|
66
|
+
scroll: {
|
|
67
|
+
type: 'boolean'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
62
71
|
freezeAnimation: {
|
|
63
72
|
// for backward compatibility
|
|
64
73
|
type: 'boolean',
|
|
@@ -296,6 +305,9 @@ export const snapshotSchema = {
|
|
|
296
305
|
reshuffleInvalidTags: {
|
|
297
306
|
$ref: '/config/snapshot#/properties/reshuffleInvalidTags'
|
|
298
307
|
},
|
|
308
|
+
scopeOptions: {
|
|
309
|
+
$ref: '/config/snapshot#/properties/scopeOptions'
|
|
310
|
+
},
|
|
299
311
|
discovery: {
|
|
300
312
|
type: 'object',
|
|
301
313
|
additionalProperties: false,
|
|
@@ -326,6 +338,9 @@ export const snapshotSchema = {
|
|
|
326
338
|
}
|
|
327
339
|
}
|
|
328
340
|
}
|
|
341
|
+
},
|
|
342
|
+
dependencies: {
|
|
343
|
+
scopeOptions: ['scope']
|
|
329
344
|
}
|
|
330
345
|
},
|
|
331
346
|
exec: {
|
|
@@ -700,6 +715,10 @@ export const comparisonSchema = {
|
|
|
700
715
|
cliScreenshotEndTime: {
|
|
701
716
|
type: 'integer',
|
|
702
717
|
default: 0
|
|
718
|
+
},
|
|
719
|
+
screenshotType: {
|
|
720
|
+
type: 'string',
|
|
721
|
+
default: 'singlepage'
|
|
703
722
|
}
|
|
704
723
|
}
|
|
705
724
|
},
|
package/dist/discovery.js
CHANGED
|
@@ -32,6 +32,7 @@ function debugSnapshotOptions(snapshot) {
|
|
|
32
32
|
debugProp(snapshot, 'deviceScaleFactor');
|
|
33
33
|
debugProp(snapshot, 'waitForTimeout');
|
|
34
34
|
debugProp(snapshot, 'waitForSelector');
|
|
35
|
+
debugProp(snapshot, 'scopeOptions.scroll');
|
|
35
36
|
debugProp(snapshot, 'execute.afterNavigation');
|
|
36
37
|
debugProp(snapshot, 'execute.beforeResize');
|
|
37
38
|
debugProp(snapshot, 'execute.afterResize');
|
package/dist/utils.js
CHANGED
|
@@ -44,7 +44,8 @@ export function percyAutomateRequestHandler(req, percy) {
|
|
|
44
44
|
ignoreRegionSelectors: (_percy$config$snapsho3 = percy.config.snapshot.ignoreRegions) === null || _percy$config$snapsho3 === void 0 ? void 0 : _percy$config$snapsho3.ignoreRegionSelectors,
|
|
45
45
|
ignoreRegionXpaths: (_percy$config$snapsho4 = percy.config.snapshot.ignoreRegions) === null || _percy$config$snapsho4 === void 0 ? void 0 : _percy$config$snapsho4.ignoreRegionXpaths,
|
|
46
46
|
considerRegionSelectors: (_percy$config$snapsho5 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho5 === void 0 ? void 0 : _percy$config$snapsho5.considerRegionSelectors,
|
|
47
|
-
considerRegionXpaths: (_percy$config$snapsho6 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho6 === void 0 ? void 0 : _percy$config$snapsho6.considerRegionXpaths
|
|
47
|
+
considerRegionXpaths: (_percy$config$snapsho6 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho6 === void 0 ? void 0 : _percy$config$snapsho6.considerRegionXpaths,
|
|
48
|
+
version: 'v2'
|
|
48
49
|
}, camelCasedOptions], (path, prev, next) => {
|
|
49
50
|
switch (path.map(k => k.toString()).join('.')) {
|
|
50
51
|
case 'percyCSS':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.27.6-beta.
|
|
3
|
+
"version": "1.27.6-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@percy/client": "1.27.6-beta.
|
|
47
|
-
"@percy/config": "1.27.6-beta.
|
|
48
|
-
"@percy/dom": "1.27.6-beta.
|
|
49
|
-
"@percy/logger": "1.27.6-beta.
|
|
50
|
-
"@percy/webdriver-utils": "1.27.6-beta.
|
|
46
|
+
"@percy/client": "1.27.6-beta.1",
|
|
47
|
+
"@percy/config": "1.27.6-beta.1",
|
|
48
|
+
"@percy/dom": "1.27.6-beta.1",
|
|
49
|
+
"@percy/logger": "1.27.6-beta.1",
|
|
50
|
+
"@percy/webdriver-utils": "1.27.6-beta.1",
|
|
51
51
|
"content-disposition": "^0.5.4",
|
|
52
52
|
"cross-spawn": "^7.0.3",
|
|
53
53
|
"extract-zip": "^2.0.1",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"rimraf": "^3.0.2",
|
|
59
59
|
"ws": "^8.0.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "1a3bf9e775769215ef590faa40502ce0ee0a6f78"
|
|
62
62
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ interface DiscoveryOptions {
|
|
|
21
21
|
captureMockedServiceWorker?: boolean;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
interface ScopeOptions {
|
|
25
|
+
scroll?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
interface DiscoveryLaunchOptions {
|
|
25
29
|
executable?: string;
|
|
26
30
|
args?: string[];
|
|
@@ -45,6 +49,7 @@ interface CommonSnapshotOptions {
|
|
|
45
49
|
reshuffleInvalidTags?: boolean;
|
|
46
50
|
devicePixelRatio?: number;
|
|
47
51
|
scope?: string;
|
|
52
|
+
scopeOptions?: ScopeOptions;
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
export interface SnapshotOptions extends CommonSnapshotOptions {
|