browsertime 16.12.0 → 16.13.2
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/CHANGELOG.md +16 -0
- package/lib/android/index.js +4 -1
- package/lib/chrome/webdriver/builder.js +23 -27
- package/lib/support/har/index.js +2 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 16.13.2 - 2022-08-14
|
|
5
|
+
### Fixed
|
|
6
|
+
* Disable adding lastCPULongTask to the HAR data since it breaks waterfall view on slow mobile phones with late CPU long tasks [#1828](https://github.com/sitespeedio/browsertime/pull/1828).
|
|
7
|
+
|
|
8
|
+
## 16.13.1 - 2022-08-10
|
|
9
|
+
### Fixed
|
|
10
|
+
* Make sure that Android id is always picked up from the phone if tests run on Android [#1826](https://github.com/sitespeedio/browsertime/pull/1826).
|
|
11
|
+
|
|
12
|
+
## 16.13.0 - 2022-08-08
|
|
13
|
+
### Added
|
|
14
|
+
* Upgraded to Edgedriver 104.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
* Upgraded to Selenium 4.3.1 [#1824](https://github.com/sitespeedio/browsertime/pull/1824).
|
|
18
|
+
* Upgraded Chrome reomte interface to 0.31.3 [#1825](https://github.com/sitespeedio/browsertime/pull/1825)
|
|
3
19
|
## 16.12.0 - 2022-08-06
|
|
4
20
|
### Added
|
|
5
21
|
* Upgraded to Chrome 104, Edge 104, Firefox 103 in the Docker container.
|
package/lib/android/index.js
CHANGED
|
@@ -161,13 +161,16 @@ class Android {
|
|
|
161
161
|
const name = (await adb.util.readAll(rawName)).toString().trim();
|
|
162
162
|
const rawDevice = await this._runCommand(`getprop ro.product.device`);
|
|
163
163
|
const device = (await adb.util.readAll(rawDevice)).toString().trim();
|
|
164
|
+
const rawId = await this._runCommand(`getprop ro.serialno`);
|
|
165
|
+
const id = (await adb.util.readAll(rawId)).toString().trim();
|
|
166
|
+
|
|
164
167
|
const rawRelease = await this._runCommand(
|
|
165
168
|
`getprop ro.build.version.release `
|
|
166
169
|
);
|
|
167
170
|
const androidVersion = (await adb.util.readAll(rawRelease))
|
|
168
171
|
.toString()
|
|
169
172
|
.trim();
|
|
170
|
-
return { model, name, device, androidVersion };
|
|
173
|
+
return { model, name, device, androidVersion, id };
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
async pullNetLog(destination) {
|
|
@@ -8,7 +8,6 @@ const isEmpty = require('lodash.isempty');
|
|
|
8
8
|
const get = require('lodash.get');
|
|
9
9
|
const setupChromiumOptions = require('./setupChromiumOptions');
|
|
10
10
|
|
|
11
|
-
let hasConfiguredChromeDriverService = false;
|
|
12
11
|
/**
|
|
13
12
|
* Configure a WebDriver builder based on the specified options.
|
|
14
13
|
* @param builder
|
|
@@ -17,34 +16,31 @@ let hasConfiguredChromeDriverService = false;
|
|
|
17
16
|
module.exports.configureBuilder = function (builder, baseDir, options) {
|
|
18
17
|
const chromeConfig = options.chrome || {};
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
chromedriverPath = chromedriver.binPath();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const serviceBuilder = new chrome.ServiceBuilder(chromedriverPath);
|
|
28
|
-
|
|
29
|
-
// Remove the check that matches the Chromedriver version with Chrome version.
|
|
30
|
-
serviceBuilder.addArguments('--disable-build-check');
|
|
31
|
-
|
|
32
|
-
if (options.chrome && options.chrome.chromedriverPort) {
|
|
33
|
-
serviceBuilder.setPort(options.chrome.chromedriverPort);
|
|
34
|
-
}
|
|
35
|
-
if (
|
|
36
|
-
options.verbose >= 2 ||
|
|
37
|
-
chromeConfig.enableChromeDriverLog ||
|
|
38
|
-
chromeConfig.enableVerboseChromeDriverLog
|
|
39
|
-
) {
|
|
40
|
-
serviceBuilder.loggingTo(`${baseDir}/chromedriver.log`);
|
|
41
|
-
if (options.verbose >= 3 || chromeConfig.enableVerboseChromeDriverLog)
|
|
42
|
-
serviceBuilder.enableVerboseLogging();
|
|
43
|
-
}
|
|
44
|
-
chrome.setDefaultService(serviceBuilder.build());
|
|
45
|
-
hasConfiguredChromeDriverService = true;
|
|
19
|
+
let chromedriverPath = get(chromeConfig, 'chromedriverPath');
|
|
20
|
+
if (!chromedriverPath) {
|
|
21
|
+
const chromedriver = require('@sitespeed.io/chromedriver');
|
|
22
|
+
chromedriverPath = chromedriver.binPath();
|
|
46
23
|
}
|
|
47
24
|
|
|
25
|
+
const serviceBuilder = new chrome.ServiceBuilder(chromedriverPath);
|
|
26
|
+
|
|
27
|
+
// Remove the check that matches the Chromedriver version with Chrome version.
|
|
28
|
+
serviceBuilder.addArguments('--disable-build-check');
|
|
29
|
+
|
|
30
|
+
if (options.chrome && options.chrome.chromedriverPort) {
|
|
31
|
+
serviceBuilder.setPort(options.chrome.chromedriverPort);
|
|
32
|
+
}
|
|
33
|
+
if (
|
|
34
|
+
options.verbose >= 2 ||
|
|
35
|
+
chromeConfig.enableChromeDriverLog ||
|
|
36
|
+
chromeConfig.enableVerboseChromeDriverLog
|
|
37
|
+
) {
|
|
38
|
+
serviceBuilder.loggingTo(`${baseDir}/chromedriver.log`);
|
|
39
|
+
if (options.verbose >= 3 || chromeConfig.enableVerboseChromeDriverLog)
|
|
40
|
+
serviceBuilder.enableVerboseLogging();
|
|
41
|
+
}
|
|
42
|
+
builder.setChromeService(serviceBuilder);
|
|
43
|
+
|
|
48
44
|
const proxyPacSettings = pick(options.proxy, ['pac']);
|
|
49
45
|
|
|
50
46
|
if (!isEmpty(proxyPacSettings)) {
|
package/lib/support/har/index.js
CHANGED
|
@@ -91,9 +91,11 @@ function addExtrasToHAR(
|
|
|
91
91
|
harPageTimings._firstPaint = timings.firstPaint;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/*
|
|
94
95
|
if (cpu && cpu.longTasks && cpu.longTasks.lastLongTask) {
|
|
95
96
|
harPageTimings._lastCPULongTask = cpu.longTasks.lastLongTask;
|
|
96
97
|
}
|
|
98
|
+
*/
|
|
97
99
|
|
|
98
100
|
if (timings && timings.largestContentfulPaint) {
|
|
99
101
|
harPageTimings._largestContentfulPaint =
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Browsertime",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.13.2",
|
|
4
4
|
"bin": "./bin/browsertime.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@cypress/xvfb": "1.2.4",
|
|
7
7
|
"@devicefarmer/adbkit": "2.11.3",
|
|
8
8
|
"@sitespeed.io/chromedriver": "104.0.5112-29",
|
|
9
|
-
"@sitespeed.io/edgedriver": "
|
|
9
|
+
"@sitespeed.io/edgedriver": "104.0.1293-47",
|
|
10
10
|
"@sitespeed.io/geckodriver": "0.31.0-c",
|
|
11
11
|
"@sitespeed.io/throttle": "4.0.1",
|
|
12
12
|
"@sitespeed.io/tracium": "0.3.3",
|
|
13
13
|
"btoa": "1.2.1",
|
|
14
14
|
"chrome-har": "0.13.0",
|
|
15
|
-
"chrome-remote-interface": "0.31.
|
|
15
|
+
"chrome-remote-interface": "0.31.3",
|
|
16
16
|
"dayjs": "1.11.1",
|
|
17
17
|
"execa": "5.1.1",
|
|
18
18
|
"fast-stats": "0.0.6",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lodash.merge": "4.6.2",
|
|
27
27
|
"lodash.pick": "4.4.0",
|
|
28
28
|
"lodash.set": "4.3.2",
|
|
29
|
-
"selenium-webdriver": "4.3.
|
|
29
|
+
"selenium-webdriver": "4.3.1",
|
|
30
30
|
"yargs": "17.4.1"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|