Skip to content

Commit

Permalink
Updated playwright dependencies + pnpm-lock.yaml + broken test (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
thehenrytsai authored Jul 23, 2024
1 parent 52c3748 commit 80d5663
Show file tree
Hide file tree
Showing 11 changed files with 7,588 additions and 6,074 deletions.
4 changes: 2 additions & 2 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"ulidx": "2.1.0"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@types/chai": "4.3.6",
"@types/dns-packet": "5.6.4",
"@types/eslint": "8.56.10",
Expand All @@ -105,7 +105,7 @@
"mocha": "10.2.0",
"mocha-junit-reporter": "2.2.1",
"node-stdlib-browser": "1.2.0",
"playwright": "1.40.1",
"playwright": "1.45.3",
"rimraf": "4.4.0",
"sinon": "16.1.3",
"typescript": "5.1.6"
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@web5/user-agent": "workspace:*"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@tbd54566975/dwn-sdk-js": "0.4.4",
"@types/chai": "4.3.6",
"@types/eslint": "8.56.10",
Expand All @@ -103,7 +103,7 @@
"mocha": "10.2.0",
"mocha-junit-reporter": "2.2.1",
"node-stdlib-browser": "1.2.0",
"playwright": "1.40.1",
"playwright": "1.45.3",
"rimraf": "4.4.0",
"sinon": "16.1.3",
"source-map-loader": "4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"eslint-plugin-mocha": "10.4.3",
"mocha": "10.4.0",
"mocha-junit-reporter": "2.2.1",
"playwright": "1.45.0",
"playwright": "1.45.3",
"rimraf": "5.0.7",
"typescript": "5.5.3"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto-aws-kms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@web5/crypto": "1.0.0"
},
"devDependencies": {
"@playwright/test": "1.45.0",
"@playwright/test": "1.45.3",
"@types/chai": "4.3.16",
"@types/chai-as-promised": "7.1.8",
"@types/eslint": "9.6.0",
Expand All @@ -93,7 +93,7 @@
"eslint-plugin-mocha": "10.4.3",
"mocha": "10.7.0",
"mocha-junit-reporter": "2.2.1",
"playwright": "1.44.0",
"playwright": "1.45.3",
"rimraf": "5.0.7",
"sinon": "18.0.0",
"source-map-loader": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@web5/common": "1.0.1"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@types/chai": "4.3.16",
"@types/chai-as-promised": "7.1.8",
"@types/eslint": "8.56.10",
Expand Down
7 changes: 6 additions & 1 deletion packages/crypto/tests/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ describe('Crypto Utils', () => {

it('handles invalid input gracefully', () => {
expect(() => randomBytes(-1)).to.throw(RangeError, 'length'); // Length cannot be negative.
expect(() => randomBytes(1e9)).to.throw(Error, 'exceed'); // Extremely large number that exceeds the available entropy.

// NOTE: only checking for Error being thrown because there is no meaningful message overlap between all browsers:
// Webkit: The quota has been exceeded.
// Firefox: Crypto.getRandomValues: getRandomValues can only generate maximum 65536 bytes
// Chromium: The ArrayBufferView's byte length (1000000000) exceeds the number of bytes of entropy available via this API (65536).
expect(() => randomBytes(1e9)).to.throw(Error); // Extremely large number that exceeds the available entropy.
});

it('produces unique values on each call', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/dids/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"ms": "2.1.3"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@types/bencode": "2.0.4",
"@types/chai": "4.3.16",
"@types/chai-as-promised": "7.1.8",
Expand All @@ -108,7 +108,7 @@
"eslint-plugin-mocha": "10.4.3",
"mocha": "10.7.0",
"mocha-junit-reporter": "2.2.1",
"playwright": "1.45.0",
"playwright": "1.45.3",
"rimraf": "5.0.7",
"sinon": "18.0.0",
"source-map-loader": "5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/identity-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@web5/dids": "1.1.0"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@types/chai": "4.3.6",
"@types/chai-as-promised": "7.1.5",
"@types/eslint": "8.56.10",
Expand All @@ -95,7 +95,7 @@
"mocha": "10.2.0",
"mocha-junit-reporter": "2.2.1",
"node-stdlib-browser": "1.2.0",
"playwright": "1.40.1",
"playwright": "1.45.3",
"rimraf": "4.4.0",
"sinon": "16.1.3",
"typescript": "5.1.6"
Expand Down
4 changes: 2 additions & 2 deletions packages/proxy-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@web5/dids": "1.1.0"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@types/chai": "4.3.6",
"@types/chai-as-promised": "7.1.5",
"@types/dns-packet": "5.6.4",
Expand All @@ -95,7 +95,7 @@
"mocha": "10.2.0",
"mocha-junit-reporter": "2.2.1",
"node-stdlib-browser": "1.2.0",
"playwright": "1.40.1",
"playwright": "1.45.3",
"rimraf": "4.4.0",
"typescript": "5.1.6"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/user-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@web5/dids": "1.1.0"
},
"devDependencies": {
"@playwright/test": "1.40.1",
"@playwright/test": "1.45.3",
"@types/chai": "4.3.6",
"@types/chai-as-promised": "7.1.5",
"@types/dns-packet": "5.6.4",
Expand All @@ -95,7 +95,7 @@
"mocha": "10.2.0",
"mocha-junit-reporter": "2.2.1",
"node-stdlib-browser": "1.2.0",
"playwright": "1.40.1",
"playwright": "1.45.3",
"rimraf": "4.4.0",
"typescript": "5.1.6"
}
Expand Down
Loading

0 comments on commit 80d5663

Please sign in to comment.