browsertime 16.15.1 → 16.16.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.
- package/CHANGELOG.md +5 -0
- package/lib/android/index.js +4 -0
- package/lib/core/engine/index.js +4 -0
- package/lib/support/cli.js +5 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 16.16.0 - 2022-09-20
|
|
4
|
+
### Added
|
|
5
|
+
* Chrome 105, Firefox 104 and Chromedriver 105 [#1843](https://github.com/sitespeedio/browsertime/pull/1843).
|
|
6
|
+
* Before you start a test on Android you can push the home button using `--androidPretestPressHomeButton` [#1844](https://github.com/sitespeedio/browsertime/pull/1844).
|
|
7
|
+
|
|
3
8
|
## 16.15.1 - 2022-08-30
|
|
4
9
|
### Fixed
|
|
5
10
|
* Make sure long tasks are collected direct after a test ends. On a slow device it sometimes happened that long tasks was browsertime running scripts to collect metrics [#1841](https://github.com/sitespeedio/browsertime/pull/1841).
|
package/lib/android/index.js
CHANGED
|
@@ -249,6 +249,10 @@ class Android {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
async pressHomeButton() {
|
|
253
|
+
return this._runCommand('input keyevent KEYCODE_HOME');
|
|
254
|
+
}
|
|
255
|
+
|
|
252
256
|
async stopVideo() {
|
|
253
257
|
return this._runCommand(
|
|
254
258
|
'command -v pkill >/dev/null && pkill -l SIGINT screenrecord || kill -2 $(ps screenrecord | grep -Eo [0-9]+ | grep -m 1 -Eo [0-9]+)'
|
package/lib/core/engine/index.js
CHANGED
|
@@ -101,6 +101,10 @@ class Engine {
|
|
|
101
101
|
await android.clickPowerButton();
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if (options.androidPretestPressHomeButton) {
|
|
105
|
+
await android.pressHomeButton();
|
|
106
|
+
}
|
|
107
|
+
|
|
104
108
|
if (options.androidVerifyNetwork) {
|
|
105
109
|
const pingAddress = get(options, 'androidPingAddress', '8.8.8.8');
|
|
106
110
|
const connection = await android.ping(pingAddress);
|
package/lib/support/cli.js
CHANGED
|
@@ -716,6 +716,11 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|
|
716
716
|
default: false,
|
|
717
717
|
describe: 'Press the power button on the phone before a test starts.'
|
|
718
718
|
})
|
|
719
|
+
.option('androidPretestPressHomeButton', {
|
|
720
|
+
type: 'boolean',
|
|
721
|
+
default: false,
|
|
722
|
+
describe: 'Press the home button on the phone before a test starts.'
|
|
723
|
+
})
|
|
719
724
|
.option('androidVerifyNetwork', {
|
|
720
725
|
type: 'boolean',
|
|
721
726
|
default: false,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Browsertime",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.16.0",
|
|
4
4
|
"bin": "./bin/browsertime.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@cypress/xvfb": "1.2.4",
|
|
7
7
|
"@devicefarmer/adbkit": "2.11.3",
|
|
8
|
-
"@sitespeed.io/chromedriver": "
|
|
8
|
+
"@sitespeed.io/chromedriver": "105.0.5195-19",
|
|
9
9
|
"@sitespeed.io/edgedriver": "104.0.1293-47",
|
|
10
10
|
"@sitespeed.io/geckodriver": "0.31.0-c",
|
|
11
11
|
"@sitespeed.io/throttle": "5.0.0",
|