browsertime 16.14.2 → 16.15.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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 16.15.0 - 2022-08-30
4
+ ### Added
5
+ * Always get the wifi name that your Android phone is using and add it to the result [#1839](https://github.com/sitespeedio/browsertime/pull/1839).
3
6
 
4
7
  ## 16.14.2 - 2022-08-26
5
8
  ### Fixed
@@ -154,7 +154,7 @@ class Android {
154
154
  return temp / 10;
155
155
  }
156
156
 
157
- async getModel() {
157
+ async getMeta() {
158
158
  const rawModel = await this._runCommand(`getprop ro.product.model`);
159
159
  const model = (await adb.util.readAll(rawModel)).toString().trim();
160
160
  const rawName = await this._runCommand(`getprop ro.product.name`);
@@ -163,14 +163,14 @@ class Android {
163
163
  const device = (await adb.util.readAll(rawDevice)).toString().trim();
164
164
  const rawId = await this._runCommand(`getprop ro.serialno`);
165
165
  const id = (await adb.util.readAll(rawId)).toString().trim();
166
-
166
+ const wifi = await this.getWifi();
167
167
  const rawRelease = await this._runCommand(
168
168
  `getprop ro.build.version.release `
169
169
  );
170
170
  const androidVersion = (await adb.util.readAll(rawRelease))
171
171
  .toString()
172
172
  .trim();
173
- return { model, name, device, androidVersion, id };
173
+ return { model, name, device, androidVersion, id, wifi };
174
174
  }
175
175
 
176
176
  async pullNetLog(destination) {
package/lib/chrome/har.js CHANGED
@@ -52,7 +52,7 @@ module.exports = async function (
52
52
  harBuilder.addBrowser(har, info.name, info.version);
53
53
 
54
54
  if (androidClient) {
55
- har.log._android = await androidClient.getModel();
55
+ har.log._android = await androidClient.getMeta();
56
56
  har.log._android.id = androidClient.id;
57
57
  }
58
58
 
@@ -250,7 +250,7 @@ class Engine {
250
250
  const collector = new Collector(name, storageManager, options);
251
251
 
252
252
  if (this.android) {
253
- const model = await this.android.getModel();
253
+ const model = await this.android.getMeta();
254
254
  log.info(
255
255
  'Run tests on %s [%s] using Android version %s',
256
256
  model.model,
@@ -371,7 +371,7 @@ class Engine {
371
371
  }
372
372
 
373
373
  if (this.android) {
374
- const model = await this.android.getModel();
374
+ const model = await this.android.getMeta();
375
375
  for (let result of totalResult) {
376
376
  result.info.android = model;
377
377
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "16.14.2",
3
+ "version": "16.15.0",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "dependencies": {
6
6
  "@cypress/xvfb": "1.2.4",