browsertime 16.0.0 → 16.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+
4
+ ## 16.0.1 - 2022-04-06
5
+ ### Fixed
6
+ * If visual metrics fails and you also use --visualElements, make sure that file is also stored so we can reporduce the issue [#1757](https://github.com/sitespeedio/browsertime/pull/1757).
3
7
  ## 16.0.0 - 2022-04-05
4
8
  ### Changed
5
9
  * When I introduced flushing of the DNS per run I missed that it makes you need to run sudo to do it (Mac/Linux). That sucks so instead of being able to disable the flushing `--disableDNSFlush` you now enables it with `--flushDNS` [#1752](https://github.com/sitespeedio/browsertime/pull/1752).
@@ -150,6 +150,11 @@ module.exports = {
150
150
  } catch (e) {
151
151
  log.error('VisualMetrics failed to run', e);
152
152
  await copyFile(videoPath, videoPath + '.failed.mp4');
153
+
154
+ if (options.visualElements) {
155
+ await copyFile(elementsFile, elementsFile + '.failed.json');
156
+ }
157
+
153
158
  // If something goes wrong, dump the visual metrics log to our log
154
159
  const visualMetricLog = await readFile(visualMetricsLogFile);
155
160
  log.error('Log from VisualMetrics: %s', visualMetricLog);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "dependencies": {
6
6
  "@cypress/xvfb": "1.2.4",