diff --git a/lerna.json b/lerna.json index df5acf4d4..d2f8b25db 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "packages": [ "packages/*" ], diff --git a/packages/cli-app/package.json b/packages/cli-app/package.json index 7df6d3341..3fb67e997 100644 --- a/packages/cli-app/package.json +++ b/packages/cli-app/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-app", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5-alpha.0", - "@percy/cli-exec": "1.30.5-alpha.0" + "@percy/cli-command": "1.30.5-beta.2", + "@percy/cli-exec": "1.30.5-beta.2" } } diff --git a/packages/cli-build/package.json b/packages/cli-build/package.json index 8c24efd37..2dcda3f91 100644 --- a/packages/cli-build/package.json +++ b/packages/cli-build/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-build", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5-alpha.0" + "@percy/cli-command": "1.30.5-beta.2" } } diff --git a/packages/cli-command/package.json b/packages/cli-command/package.json index 102811677..8f1871891 100644 --- a/packages/cli-command/package.json +++ b/packages/cli-command/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-command", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "files": [ "dist", @@ -36,8 +36,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.30.5-alpha.0", - "@percy/core": "1.30.5-alpha.0", - "@percy/logger": "1.30.5-alpha.0" + "@percy/config": "1.30.5-beta.2", + "@percy/core": "1.30.5-beta.2", + "@percy/logger": "1.30.5-beta.2" } } diff --git a/packages/cli-config/package.json b/packages/cli-config/package.json index 38265f36a..f00f58812 100644 --- a/packages/cli-config/package.json +++ b/packages/cli-config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-config", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5-alpha.0" + "@percy/cli-command": "1.30.5-beta.2" } } diff --git a/packages/cli-exec/package.json b/packages/cli-exec/package.json index 026aa5086..197de6f2a 100644 --- a/packages/cli-exec/package.json +++ b/packages/cli-exec/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-exec", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,8 +33,8 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5-alpha.0", - "@percy/logger": "1.30.5-alpha.0", + "@percy/cli-command": "1.30.5-beta.2", + "@percy/logger": "1.30.5-beta.2", "cross-spawn": "^7.0.3", "which": "^2.0.2" } diff --git a/packages/cli-snapshot/package.json b/packages/cli-snapshot/package.json index bdabb2036..dde908152 100644 --- a/packages/cli-snapshot/package.json +++ b/packages/cli-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-snapshot", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5-alpha.0", + "@percy/cli-command": "1.30.5-beta.2", "yaml": "^2.0.0" } } diff --git a/packages/cli-upload/package.json b/packages/cli-upload/package.json index b34265016..37eca4b07 100644 --- a/packages/cli-upload/package.json +++ b/packages/cli-upload/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-upload", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5-alpha.0", + "@percy/cli-command": "1.30.5-beta.2", "fast-glob": "^3.2.11", "image-size": "^1.0.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index 40ce7db1a..4ca67356b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "files": [ "bin", @@ -31,14 +31,14 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/cli-app": "1.30.5-alpha.0", - "@percy/cli-build": "1.30.5-alpha.0", - "@percy/cli-command": "1.30.5-alpha.0", - "@percy/cli-config": "1.30.5-alpha.0", - "@percy/cli-exec": "1.30.5-alpha.0", - "@percy/cli-snapshot": "1.30.5-alpha.0", - "@percy/cli-upload": "1.30.5-alpha.0", - "@percy/client": "1.30.5-alpha.0", - "@percy/logger": "1.30.5-alpha.0" + "@percy/cli-app": "1.30.5-beta.2", + "@percy/cli-build": "1.30.5-beta.2", + "@percy/cli-command": "1.30.5-beta.2", + "@percy/cli-config": "1.30.5-beta.2", + "@percy/cli-exec": "1.30.5-beta.2", + "@percy/cli-snapshot": "1.30.5-beta.2", + "@percy/cli-upload": "1.30.5-beta.2", + "@percy/client": "1.30.5-beta.2", + "@percy/logger": "1.30.5-beta.2" } } diff --git a/packages/client/package.json b/packages/client/package.json index 43a33dd05..044adec97 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@percy/client", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -33,8 +33,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/env": "1.30.5-alpha.0", - "@percy/logger": "1.30.5-alpha.0", + "@percy/env": "1.30.5-beta.2", + "@percy/logger": "1.30.5-beta.2", "pako": "^2.1.0" } } diff --git a/packages/config/package.json b/packages/config/package.json index c5f13c7be..8ab32c829 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/config", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -38,7 +38,7 @@ "test:types": "tsd" }, "dependencies": { - "@percy/logger": "1.30.5-alpha.0", + "@percy/logger": "1.30.5-beta.2", "ajv": "^8.6.2", "cosmiconfig": "^8.0.0", "yaml": "^2.0.0" diff --git a/packages/core/package.json b/packages/core/package.json index a3d5985c5..1f99f208b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@percy/core", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "engines": { "node": ">=14" @@ -43,11 +43,11 @@ "test:types": "tsd" }, "dependencies": { - "@percy/client": "1.30.5-alpha.0", - "@percy/config": "1.30.5-alpha.0", - "@percy/dom": "1.30.5-alpha.0", - "@percy/logger": "1.30.5-alpha.0", - "@percy/webdriver-utils": "1.30.5-alpha.0", + "@percy/client": "1.30.5-beta.2", + "@percy/config": "1.30.5-beta.2", + "@percy/dom": "1.30.5-beta.2", + "@percy/logger": "1.30.5-beta.2", + "@percy/webdriver-utils": "1.30.5-beta.2", "content-disposition": "^0.5.4", "cross-spawn": "^7.0.3", "extract-zip": "^2.0.1", diff --git a/packages/core/src/discovery.js b/packages/core/src/discovery.js index 092dfb603..09f052d61 100644 --- a/packages/core/src/discovery.js +++ b/packages/core/src/discovery.js @@ -118,10 +118,12 @@ function waitForDiscoveryNetworkIdle(page, options) { } async function waitForFontLoading(page) { - await Promise.race([ - page.eval('await document.fonts.ready;'), - new Promise((res) => setTimeout(res, 5000)) - ]); + return await logger.measure('core:discovery', 'waitForFontLoading', undefined, async () => { + return await Promise.race([ + page.eval('await document.fonts.ready;'), + new Promise((res) => setTimeout(res, 5000)) + ]); + }); } // Creates an initial resource map for a snapshot containing serialized DOM diff --git a/packages/dom/package.json b/packages/dom/package.json index ccab8a50d..038a890d0 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@percy/dom", - "version": "1.30.5-alpha.0", + "version": "1.30.5-beta.2", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "beta" }, "main": "dist/bundle.js", "browser": "dist/bundle.js", diff --git a/packages/dom/src/clone-dom.js b/packages/dom/src/clone-dom.js index 938d54f21..e73a54e2d 100644 --- a/packages/dom/src/clone-dom.js +++ b/packages/dom/src/clone-dom.js @@ -84,20 +84,20 @@ export function cloneNodeAndShadow(ctx) { /** * Use `getInnerHTML()` to serialize shadow dom as