@percy/webdriver-utils 1.28.0-beta.0 → 1.28.0
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.
|
@@ -86,13 +86,14 @@ export default class AutomateProvider extends GenericProvider {
|
|
|
86
86
|
async percyScreenshotEnd(name, error) {
|
|
87
87
|
return await TimeIt.run('percyScreenshotEnd', async () => {
|
|
88
88
|
try {
|
|
89
|
-
var _this$buildInfo;
|
|
89
|
+
var _this$buildInfo, _this$options;
|
|
90
90
|
await this.browserstackExecutor('percyScreenshot', {
|
|
91
91
|
name,
|
|
92
92
|
percyScreenshotUrl: (_this$buildInfo = this.buildInfo) === null || _this$buildInfo === void 0 ? void 0 : _this$buildInfo.url,
|
|
93
93
|
status: error ? 'failure' : 'success',
|
|
94
94
|
statusMessage: error ? `${error}` : '',
|
|
95
|
-
state: 'end'
|
|
95
|
+
state: 'end',
|
|
96
|
+
sync: (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.sync
|
|
96
97
|
});
|
|
97
98
|
} catch (e) {
|
|
98
99
|
log.debug(`[${name}] : Could not execute percyScreenshot command for Automate`);
|
|
@@ -101,11 +102,11 @@ export default class AutomateProvider extends GenericProvider {
|
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
async getTiles(fullscreen) {
|
|
104
|
-
var _this$
|
|
105
|
+
var _this$options2;
|
|
105
106
|
if (!this.driver) throw new Error('Driver is null, please initialize driver with createDriver().');
|
|
106
107
|
log.debug('Starting actual screenshotting phase');
|
|
107
108
|
const dpr = await this.metaData.devicePixelRatio();
|
|
108
|
-
const screenshotType = (_this$
|
|
109
|
+
const screenshotType = (_this$options2 = this.options) !== null && _this$options2 !== void 0 && _this$options2.fullPage ? 'fullpage' : 'singlepage';
|
|
109
110
|
const response = await TimeIt.run('percyScreenshot:screenshot', async () => {
|
|
110
111
|
return await this.browserstackExecutor('percyScreenshot', {
|
|
111
112
|
state: 'screenshot',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/webdriver-utils",
|
|
3
|
-
"version": "1.28.0
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public",
|
|
12
|
-
"tag": "
|
|
12
|
+
"tag": "latest"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test:coverage": "yarn test --coverage"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@percy/config": "1.28.0
|
|
33
|
-
"@percy/sdk-utils": "1.28.0
|
|
32
|
+
"@percy/config": "1.28.0",
|
|
33
|
+
"@percy/sdk-utils": "1.28.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "9d95f18e45e37aa3683e5b8276fd85cf07dba8cb"
|
|
36
36
|
}
|