Skip to content

Commit

Permalink
Bump Playwright to 1.34.3
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Jun 2, 2023
1 parent 6cd631f commit 35b8f5f
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 57 deletions.
57 changes: 14 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion packages/crypto/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
Expand Down Expand Up @@ -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
});
};
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 11 additions & 1 deletion packages/dids/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
Expand Down Expand Up @@ -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
});
};
2 changes: 1 addition & 1 deletion packages/dids/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 11 additions & 1 deletion packages/web5-agent/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
Expand Down Expand Up @@ -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
});
};
2 changes: 1 addition & 1 deletion packages/web5-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 11 additions & 1 deletion packages/web5-proxy-agent/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
Expand Down Expand Up @@ -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
});
};
2 changes: 1 addition & 1 deletion packages/web5-proxy-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 11 additions & 1 deletion packages/web5-user-agent/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
Expand Down Expand Up @@ -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
});
};
Loading

0 comments on commit 35b8f5f

Please sign in to comment.