build(rrvideo): upgrade playwright from 1.32.1 to 1.56.1 (#1761)

* 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.
This commit is contained in:
Justin Halsall
2026-01-02 11:15:05 +01:00
committed by GitHub
parent c059dbf41d
commit fa7c3e5a88
4 changed files with 21 additions and 16 deletions

View File

@@ -33,7 +33,7 @@
"@open-tech-world/cli-progress-bar": "^2.0.2",
"fs-extra": "^11.1.1",
"minimist": "^1.2.5",
"playwright": "^1.32.1",
"playwright": "^1.56.1",
"rrweb-player": "^2.0.0-alpha.19"
}
}

View File

@@ -18,16 +18,19 @@ describe('should be able to run cli', () => {
await fs.remove(path.resolve(__dirname, './generated'));
});
const execOptions = { stdio: 'pipe', timeout: 60_000 } as const;
it('should throw error without input path', () => {
expect(() => {
execSync('node ./build/cli.js', { stdio: 'pipe' });
execSync('node ./build/cli.js', execOptions);
}).toThrowError(/.*please pass --input to your rrweb events file.*/);
});
it('should generate a video without output path', () => {
execSync('node ./build/cli.js --input ./test/generated/example.json', {
stdio: 'pipe',
});
execSync(
'node ./build/cli.js --input ./test/generated/example.json',
execOptions,
);
const outputFile = path.resolve(__dirname, '../rrvideo-output.webm');
expect(fs.existsSync(outputFile)).toBe(true);
fs.removeSync(outputFile);
@@ -37,7 +40,7 @@ describe('should be able to run cli', () => {
const outputFile = path.resolve(__dirname, './generated/output.webm');
execSync(
`node ./build/cli.js --input ./test/generated/example.json --output ${outputFile}`,
{ stdio: 'pipe' },
execOptions,
);
expect(fs.existsSync(outputFile)).toBe(true);
fs.removeSync(outputFile);