diff --git a/package-lock.json b/package-lock.json index 17b79c548..b6da424cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -766,13 +766,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.33.0.tgz", - "integrity": "sha512-YunBa2mE7Hq4CfPkGzQRK916a4tuZoVx/EpLjeWlTVOnD4S2+fdaQZE0LJkbfhN5FTSKNLdcl7MoT5XB37bTkg==", + "version": "1.34.3", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.34.3.tgz", + "integrity": "sha512-zPLef6w9P6T/iT6XDYG3mvGOqOyb6eHaV9XtkunYs0+OzxBtrPAAaHotc0X+PJ00WPPnLfFBTl7mf45Mn8DBmw==", "dev": true, "dependencies": { "@types/node": "*", - "playwright-core": "1.33.0" + "playwright-core": "1.34.3" }, "bin": { "playwright": "cli.js" @@ -5963,41 +5963,13 @@ "node": ">=10" } }, - "node_modules/playwright": { - "version": "1.31.2", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.31.2.tgz", - "integrity": "sha512-jpC47n2PKQNtzB7clmBuWh6ftBRS/Bt5EGLigJ9k2QAKcNeYXZkEaDH5gmvb6+AbcE0DO6GnXdbl9ogG6Eh+og==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "playwright-core": "1.31.2" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=14" - } - }, "node_modules/playwright-core": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.33.0.tgz", - "integrity": "sha512-aizyPE1Cj62vAECdph1iaMILpT0WUDCq3E6rW6I+dleSbBoGbktvJtzS6VHkZ4DKNEOG9qJpiom/ZxO+S15LAw==", - "dev": true, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/playwright/node_modules/playwright-core": { - "version": "1.31.2", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.31.2.tgz", - "integrity": "sha512-a1dFgCNQw4vCsG7bnojZjDnPewZcw7tZUNFN0ZkcLYKj+mPmXvg4MpaaKZ5SgqPsOmqIf2YsVRkgqiRDxD+fDQ==", + "version": "1.34.3", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.34.3.tgz", + "integrity": "sha512-2pWd6G7OHKemc5x1r1rp8aQcpvDh7goMBZlJv6Co5vCNLVcQJdhxRL09SGaY6HcyHH9aT4tiynZabMofVasBYw==", "dev": true, "bin": { - "playwright": "cli.js" + "playwright-core": "cli.js" }, "engines": { "node": ">=14" @@ -7707,6 +7679,7 @@ "multiformats": "11.0.2" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/ed2curve": "0.2.2", @@ -7730,7 +7703,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", @@ -7751,6 +7723,7 @@ "cross-fetch": "3.1.5" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/eslint": "8.37.0", @@ -7773,7 +7746,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", @@ -7800,6 +7772,7 @@ "readable-web-to-node-stream": "3.0.2" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/eslint": "8.37.0", @@ -7823,7 +7796,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", @@ -7842,6 +7814,7 @@ "readable-stream": "4.4.0" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/eslint": "8.37.0", @@ -7864,7 +7837,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", @@ -7882,6 +7854,7 @@ "@tbd54566975/web5-agent": "0.1.5" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/ed2curve": "0.2.2", @@ -7905,7 +7878,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", @@ -7933,7 +7905,7 @@ }, "devDependencies": { "@faker-js/faker": "8.0.1", - "@playwright/test": "1.33.0", + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/flat": "5.0.2", @@ -7956,7 +7928,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", diff --git a/packages/crypto/karma.conf.cjs b/packages/crypto/karma.conf.cjs index 1a3e8269c..083f0c963 100644 --- a/packages/crypto/karma.conf.cjs +++ b/packages/crypto/karma.conf.cjs @@ -3,7 +3,7 @@ // Karma does not support .mjs // playwright acts as a safari executable on windows and mac -const playwright = require('playwright'); +const playwright = require('@playwright/test'); const esbuildBrowserConfig = require('./build/esbuild-browser-config.cjs'); // use playwright chrome exec path as run target for chromium tests @@ -30,6 +30,12 @@ module.exports = function (config) { // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: ['mocha'], + // Increase Mocha's default timeout of 2 seconds to prevent timeouts during GitHub CI runs. + client: { + mocha: { + timeout: 10000 // 10 seconds + } + }, // list of files / patterns to load in the browser files: [ @@ -71,5 +77,9 @@ module.exports = function (config) { // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, + + // Increase browser timeouts to avoid DISCONNECTED messages during GitHub CI runs. + browserDisconnectTimeout : 10000, // default 2000 + browserDisconnectTolerance : 1, // default 0 }); }; diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 82b13675b..bee507cac 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -78,6 +78,7 @@ "multiformats": "11.0.2" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/ed2curve": "0.2.2", @@ -101,7 +102,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", diff --git a/packages/dids/karma.conf.cjs b/packages/dids/karma.conf.cjs index 1a3e8269c..083f0c963 100644 --- a/packages/dids/karma.conf.cjs +++ b/packages/dids/karma.conf.cjs @@ -3,7 +3,7 @@ // Karma does not support .mjs // playwright acts as a safari executable on windows and mac -const playwright = require('playwright'); +const playwright = require('@playwright/test'); const esbuildBrowserConfig = require('./build/esbuild-browser-config.cjs'); // use playwright chrome exec path as run target for chromium tests @@ -30,6 +30,12 @@ module.exports = function (config) { // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: ['mocha'], + // Increase Mocha's default timeout of 2 seconds to prevent timeouts during GitHub CI runs. + client: { + mocha: { + timeout: 10000 // 10 seconds + } + }, // list of files / patterns to load in the browser files: [ @@ -71,5 +77,9 @@ module.exports = function (config) { // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, + + // Increase browser timeouts to avoid DISCONNECTED messages during GitHub CI runs. + browserDisconnectTimeout : 10000, // default 2000 + browserDisconnectTolerance : 1, // default 0 }); }; diff --git a/packages/dids/package.json b/packages/dids/package.json index ac9b8ab7f..2e191617d 100644 --- a/packages/dids/package.json +++ b/packages/dids/package.json @@ -84,6 +84,7 @@ "cross-fetch": "3.1.5" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/eslint": "8.37.0", @@ -106,7 +107,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", diff --git a/packages/web5-agent/karma.conf.cjs b/packages/web5-agent/karma.conf.cjs index 1a3e8269c..083f0c963 100644 --- a/packages/web5-agent/karma.conf.cjs +++ b/packages/web5-agent/karma.conf.cjs @@ -3,7 +3,7 @@ // Karma does not support .mjs // playwright acts as a safari executable on windows and mac -const playwright = require('playwright'); +const playwright = require('@playwright/test'); const esbuildBrowserConfig = require('./build/esbuild-browser-config.cjs'); // use playwright chrome exec path as run target for chromium tests @@ -30,6 +30,12 @@ module.exports = function (config) { // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: ['mocha'], + // Increase Mocha's default timeout of 2 seconds to prevent timeouts during GitHub CI runs. + client: { + mocha: { + timeout: 10000 // 10 seconds + } + }, // list of files / patterns to load in the browser files: [ @@ -71,5 +77,9 @@ module.exports = function (config) { // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, + + // Increase browser timeouts to avoid DISCONNECTED messages during GitHub CI runs. + browserDisconnectTimeout : 10000, // default 2000 + browserDisconnectTolerance : 1, // default 0 }); }; diff --git a/packages/web5-agent/package.json b/packages/web5-agent/package.json index b70c0743f..992c6f0f2 100644 --- a/packages/web5-agent/package.json +++ b/packages/web5-agent/package.json @@ -79,6 +79,7 @@ "@tbd54566975/dwn-sdk-js": "0.0.33" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/eslint": "8.37.0", @@ -101,7 +102,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", diff --git a/packages/web5-proxy-agent/karma.conf.cjs b/packages/web5-proxy-agent/karma.conf.cjs index 1a3e8269c..083f0c963 100644 --- a/packages/web5-proxy-agent/karma.conf.cjs +++ b/packages/web5-proxy-agent/karma.conf.cjs @@ -3,7 +3,7 @@ // Karma does not support .mjs // playwright acts as a safari executable on windows and mac -const playwright = require('playwright'); +const playwright = require('@playwright/test'); const esbuildBrowserConfig = require('./build/esbuild-browser-config.cjs'); // use playwright chrome exec path as run target for chromium tests @@ -30,6 +30,12 @@ module.exports = function (config) { // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: ['mocha'], + // Increase Mocha's default timeout of 2 seconds to prevent timeouts during GitHub CI runs. + client: { + mocha: { + timeout: 10000 // 10 seconds + } + }, // list of files / patterns to load in the browser files: [ @@ -71,5 +77,9 @@ module.exports = function (config) { // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, + + // Increase browser timeouts to avoid DISCONNECTED messages during GitHub CI runs. + browserDisconnectTimeout : 10000, // default 2000 + browserDisconnectTolerance : 1, // default 0 }); }; diff --git a/packages/web5-proxy-agent/package.json b/packages/web5-proxy-agent/package.json index 8d526e9a6..c7c29bda6 100644 --- a/packages/web5-proxy-agent/package.json +++ b/packages/web5-proxy-agent/package.json @@ -78,6 +78,7 @@ "@tbd54566975/web5-agent": "0.1.5" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/ed2curve": "0.2.2", @@ -101,7 +102,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", diff --git a/packages/web5-user-agent/karma.conf.cjs b/packages/web5-user-agent/karma.conf.cjs index 11a39f81a..ba578d742 100644 --- a/packages/web5-user-agent/karma.conf.cjs +++ b/packages/web5-user-agent/karma.conf.cjs @@ -3,7 +3,7 @@ // Karma does not support .mjs // playwright acts as a safari executable on windows and mac -const playwright = require('playwright'); +const playwright = require('@playwright/test'); const esbuildBrowserConfig = require('./build/esbuild-browser-config.cjs'); // use playwright chrome exec path as run target for chromium tests @@ -30,6 +30,12 @@ module.exports = function (config) { // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: ['mocha'], + // Increase Mocha's default timeout of 2 seconds to prevent timeouts during GitHub CI runs. + client: { + mocha: { + timeout: 10000 // 10 seconds + } + }, // list of files / patterns to load in the browser files: [ @@ -73,5 +79,9 @@ module.exports = function (config) { // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, + + // Increase browser timeouts to avoid DISCONNECTED messages during GitHub CI runs. + browserDisconnectTimeout : 10000, // default 2000 + browserDisconnectTolerance : 1, // default 0 }); }; diff --git a/packages/web5-user-agent/package.json b/packages/web5-user-agent/package.json index 42dd8dae0..56d0c67f3 100644 --- a/packages/web5-user-agent/package.json +++ b/packages/web5-user-agent/package.json @@ -88,7 +88,7 @@ }, "devDependencies": { "@faker-js/faker": "8.0.1", - "@playwright/test": "1.33.0", + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/flat": "5.0.2", @@ -111,7 +111,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", diff --git a/packages/web5/karma.conf.cjs b/packages/web5/karma.conf.cjs index 5f81b798d..e114c588c 100644 --- a/packages/web5/karma.conf.cjs +++ b/packages/web5/karma.conf.cjs @@ -3,7 +3,7 @@ // Karma does not support .mjs // playwright acts as a safari executable on windows and mac -const playwright = require('playwright'); +const playwright = require('@playwright/test'); const esbuildBrowserConfig = require('./build/esbuild-browser-config.cjs'); // use playwright chrome exec path as run target for chromium tests @@ -30,6 +30,12 @@ module.exports = function (config) { // available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter frameworks: ['mocha'], + // Increase Mocha's default timeout of 2 seconds to prevent timeouts during GitHub CI runs. + client: { + mocha: { + timeout: 10000 // 10 seconds + } + }, // list of files / patterns to load in the browser files: [ @@ -73,5 +79,9 @@ module.exports = function (config) { // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, + + // Increase browser timeouts to avoid DISCONNECTED messages during GitHub CI runs. + browserDisconnectTimeout : 10000, // default 2000 + browserDisconnectTolerance : 1, // default 0 }); }; diff --git a/packages/web5/package.json b/packages/web5/package.json index b364d558b..85d955731 100644 --- a/packages/web5/package.json +++ b/packages/web5/package.json @@ -91,6 +91,7 @@ "readable-web-to-node-stream": "3.0.2" }, "devDependencies": { + "@playwright/test": "1.34.3", "@types/chai": "4.3.0", "@types/chai-as-promised": "7.1.5", "@types/eslint": "8.37.0", @@ -114,7 +115,6 @@ "karma-webkit-launcher": "2.1.0", "mocha": "10.2.0", "node-stdlib-browser": "1.2.0", - "playwright": "1.31.2", "rimraf": "4.4.0", "sinon": "15.0.2", "source-map-loader": "4.0.1", @@ -123,4 +123,4 @@ "overrides": { "socket.io-parser@>4.0.4 <4.2.3": "4.2.3" } -} \ No newline at end of file +}