Skip to content

Commit a98ad5a

Browse files
committed
build(rrvideo): upgrade playwright from 1.32.1 to 1.56.1
Update playwright dependency to latest version and refactor test execution options to use a shared configuration with increased timeout for stability.
1 parent c059dbf commit a98ad5a

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

packages/rrvideo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@open-tech-world/cli-progress-bar": "^2.0.2",
3434
"fs-extra": "^11.1.1",
3535
"minimist": "^1.2.5",
36-
"playwright": "^1.32.1",
36+
"playwright": "^1.56.1",
3737
"rrweb-player": "^2.0.0-alpha.19"
3838
}
3939
}

packages/rrvideo/test/cli.test.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ describe('should be able to run cli', () => {
1818
await fs.remove(path.resolve(__dirname, './generated'));
1919
});
2020

21+
const execOptions = { stdio: 'pipe', timeout: 60_000 } as const;
22+
2123
it('should throw error without input path', () => {
2224
expect(() => {
23-
execSync('node ./build/cli.js', { stdio: 'pipe' });
25+
execSync('node ./build/cli.js', execOptions);
2426
}).toThrowError(/.*please pass --input to your rrweb events file.*/);
2527
});
2628

2729
it('should generate a video without output path', () => {
28-
execSync('node ./build/cli.js --input ./test/generated/example.json', {
29-
stdio: 'pipe',
30-
});
30+
execSync(
31+
'node ./build/cli.js --input ./test/generated/example.json',
32+
execOptions,
33+
);
3134
const outputFile = path.resolve(__dirname, '../rrvideo-output.webm');
3235
expect(fs.existsSync(outputFile)).toBe(true);
3336
fs.removeSync(outputFile);
@@ -37,7 +40,7 @@ describe('should be able to run cli', () => {
3740
const outputFile = path.resolve(__dirname, './generated/output.webm');
3841
execSync(
3942
`node ./build/cli.js --input ./test/generated/example.json --output ${outputFile}`,
40-
{ stdio: 'pipe' },
43+
execOptions,
4144
);
4245
expect(fs.existsSync(outputFile)).toBe(true);
4346
fs.removeSync(outputFile);

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2-
# yarn lockfile v1
2+
# yarn lockfile v1
33

44

55
"@ampproject/remapping@^2.2.0", "@ampproject/remapping@^2.2.1":
@@ -8238,17 +8238,17 @@ pkg-types@^1.0.3, pkg-types@^1.1.1:
82388238
mlly "^1.7.0"
82398239
pathe "^1.1.2"
82408240

8241-
playwright-core@1.44.1:
8242-
version "1.44.1"
8243-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.44.1.tgz#53ec975503b763af6fc1a7aa995f34bc09ff447c"
8244-
integrity sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==
8241+
playwright-core@1.56.1:
8242+
version "1.56.1"
8243+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.1.tgz#24a66481e5cd33a045632230aa2c4f0cb6b1db3d"
8244+
integrity sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ==
82458245

8246-
playwright@^1.32.1:
8247-
version "1.44.1"
8248-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.44.1.tgz#5634369d777111c1eea9180430b7a184028e7892"
8249-
integrity sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==
8246+
playwright@^1.56.1:
8247+
version "1.56.1"
8248+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.1.tgz#62e3b99ddebed0d475e5936a152c88e68be55fbf"
8249+
integrity sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw==
82508250
dependencies:
8251-
playwright-core "1.44.1"
8251+
playwright-core "1.56.1"
82528252
optionalDependencies:
82538253
fsevents "2.3.2"
82548254

0 commit comments

Comments
 (0)