From e23dffb3615b2b7c213fcfbd1bbc4a73e7cb6e2a Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 30 Apr 2021 06:01:37 +0200 Subject: [PATCH] new browsertime --- docs/_includes/version/browsertime.txt | 2 +- .../browsertime/configuration/config.md | 3 ++- lib/plugins/browsertime/default/config.js | 1 + npm-shrinkwrap.json | 18 +++++++++--------- package.json | 2 +- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/_includes/version/browsertime.txt b/docs/_includes/version/browsertime.txt index a17cbe225..ce7f95101 100644 --- a/docs/_includes/version/browsertime.txt +++ b/docs/_includes/version/browsertime.txt @@ -1 +1 @@ -12.2.0 \ No newline at end of file +12.3.0 \ No newline at end of file diff --git a/docs/documentation/browsertime/configuration/config.md b/docs/documentation/browsertime/configuration/config.md index ed70fb873..67ebb82de 100644 --- a/docs/documentation/browsertime/configuration/config.md +++ b/docs/documentation/browsertime/configuration/config.md @@ -96,7 +96,8 @@ safari --safari.useSimulator If the value of useSimulator is true, safaridriver will only use iOS Simulator hosts. If the value of safari:useSimulator is false, safaridriver will not use iOS Simulator hosts. NOTE: An Xcode installation is required in order to run WebDriver tests on iOS Simulator hosts. [boolean] [default: false] Screenshot - --screenshot Save one screen shot per iteration. [boolean] [default: false] + --screenshot Save one screenshot per iteration. [boolean] [default: false] + --screenshotLCP Save one screenshot per iteration that shows the largest contentful paint element (if the browser supports LCP). [boolean] [default: false] --screenshotParams.type Set the file type of the screenshot [choices: "png", "jpg"] [default: "jpg"] --screenshotParams.png.compressionLevel zlib compression level [default: 6] --screenshotParams.jpg.quality Quality of the JPEG screenshot. 1-100 [default: 80] diff --git a/lib/plugins/browsertime/default/config.js b/lib/plugins/browsertime/default/config.js index edde4b4a8..091bf269c 100644 --- a/lib/plugins/browsertime/default/config.js +++ b/lib/plugins/browsertime/default/config.js @@ -11,6 +11,7 @@ module.exports = { engine: 'external' }, screenshot: true, + screenshotLCP: true, screenshotParams: { type: 'png', png: { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 1111a4eac..ee4977af4 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -67,9 +67,9 @@ "dev": true }, "@babel/runtime": { - "version": "7.13.17", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.17.tgz", - "integrity": "sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA==", + "version": "7.14.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.14.0.tgz", + "integrity": "sha512-JELkvo/DlpNdJ7dlyw/eY7E0suy5i5GQH+Vlxaq1nsNJ+H7f4Vtv3jMeCEgRhZZQFXTjldYfQgv2qmM6M1v5wA==", "optional": true, "requires": { "regenerator-runtime": "^0.13.4" @@ -748,9 +748,9 @@ } }, "@types/node": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.0.0.tgz", - "integrity": "sha512-YN1d+ae2MCb4U0mMa+Zlb5lWTdpFShbAj5nmte6lel27waMMBfivrm0prC16p/Di3DyTrmerrYUT8/145HXxVw==" + "version": "15.0.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.0.1.tgz", + "integrity": "sha512-TMkXt0Ck1y0KKsGr9gJtWGjttxlZnnvDtphxUOSd0bfaR6Q1jle+sPvrzNR1urqYTWMinoKvjKfXUGsumaO1PA==" }, "abbrev": { "version": "1.1.1", @@ -1095,9 +1095,9 @@ } }, "browsertime": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-12.2.0.tgz", - "integrity": "sha512-nqzzKSrrq+jV52/9loFm8P3DTBj6xo6X7JgJKyQ/7RFECAlektaubKSFmlEkNSByMVu/YkfQhUKxzFOOVlJgFg==", + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-12.3.0.tgz", + "integrity": "sha512-uqvudCLpFpYiTorPmD16XGZzxQKzWdlFVOteTMMIL4G4nTdE714gVuFLKm1wrGnqnTH2iR/4vX6Xj27QGEGPPw==", "requires": { "@cypress/xvfb": "1.2.4", "@devicefarmer/adbkit": "2.11.3", diff --git a/package.json b/package.json index e3ebe2dc3..6981a84bd 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "@tgwf/co2": "0.6.1", "aws-sdk": "2.882.0", "axe-core": "4.2.0", - "browsertime": "12.2.0", + "browsertime": "12.3.0", "coach-core": "6.3.3", "cli-color": "2.0.0", "concurrent-queue": "7.0.2",