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:
2
.changeset/eight-years-hope.md
Normal file
2
.changeset/eight-years-hope.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"@open-tech-world/cli-progress-bar": "^2.0.2",
|
"@open-tech-world/cli-progress-bar": "^2.0.2",
|
||||||
"fs-extra": "^11.1.1",
|
"fs-extra": "^11.1.1",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"playwright": "^1.32.1",
|
"playwright": "^1.56.1",
|
||||||
"rrweb-player": "^2.0.0-alpha.19"
|
"rrweb-player": "^2.0.0-alpha.19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,16 +18,19 @@ describe('should be able to run cli', () => {
|
|||||||
await fs.remove(path.resolve(__dirname, './generated'));
|
await fs.remove(path.resolve(__dirname, './generated'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const execOptions = { stdio: 'pipe', timeout: 60_000 } as const;
|
||||||
|
|
||||||
it('should throw error without input path', () => {
|
it('should throw error without input path', () => {
|
||||||
expect(() => {
|
expect(() => {
|
||||||
execSync('node ./build/cli.js', { stdio: 'pipe' });
|
execSync('node ./build/cli.js', execOptions);
|
||||||
}).toThrowError(/.*please pass --input to your rrweb events file.*/);
|
}).toThrowError(/.*please pass --input to your rrweb events file.*/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should generate a video without output path', () => {
|
it('should generate a video without output path', () => {
|
||||||
execSync('node ./build/cli.js --input ./test/generated/example.json', {
|
execSync(
|
||||||
stdio: 'pipe',
|
'node ./build/cli.js --input ./test/generated/example.json',
|
||||||
});
|
execOptions,
|
||||||
|
);
|
||||||
const outputFile = path.resolve(__dirname, '../rrvideo-output.webm');
|
const outputFile = path.resolve(__dirname, '../rrvideo-output.webm');
|
||||||
expect(fs.existsSync(outputFile)).toBe(true);
|
expect(fs.existsSync(outputFile)).toBe(true);
|
||||||
fs.removeSync(outputFile);
|
fs.removeSync(outputFile);
|
||||||
@@ -37,7 +40,7 @@ describe('should be able to run cli', () => {
|
|||||||
const outputFile = path.resolve(__dirname, './generated/output.webm');
|
const outputFile = path.resolve(__dirname, './generated/output.webm');
|
||||||
execSync(
|
execSync(
|
||||||
`node ./build/cli.js --input ./test/generated/example.json --output ${outputFile}`,
|
`node ./build/cli.js --input ./test/generated/example.json --output ${outputFile}`,
|
||||||
{ stdio: 'pipe' },
|
execOptions,
|
||||||
);
|
);
|
||||||
expect(fs.existsSync(outputFile)).toBe(true);
|
expect(fs.existsSync(outputFile)).toBe(true);
|
||||||
fs.removeSync(outputFile);
|
fs.removeSync(outputFile);
|
||||||
|
|||||||
18
yarn.lock
18
yarn.lock
@@ -8238,17 +8238,17 @@ pkg-types@^1.0.3, pkg-types@^1.1.1:
|
|||||||
mlly "^1.7.0"
|
mlly "^1.7.0"
|
||||||
pathe "^1.1.2"
|
pathe "^1.1.2"
|
||||||
|
|
||||||
playwright-core@1.44.1:
|
playwright-core@1.56.1:
|
||||||
version "1.44.1"
|
version "1.56.1"
|
||||||
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.44.1.tgz#53ec975503b763af6fc1a7aa995f34bc09ff447c"
|
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.1.tgz#24a66481e5cd33a045632230aa2c4f0cb6b1db3d"
|
||||||
integrity sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==
|
integrity sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ==
|
||||||
|
|
||||||
playwright@^1.32.1:
|
playwright@^1.56.1:
|
||||||
version "1.44.1"
|
version "1.56.1"
|
||||||
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.44.1.tgz#5634369d777111c1eea9180430b7a184028e7892"
|
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.1.tgz#62e3b99ddebed0d475e5936a152c88e68be55fbf"
|
||||||
integrity sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==
|
integrity sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw==
|
||||||
dependencies:
|
dependencies:
|
||||||
playwright-core "1.44.1"
|
playwright-core "1.56.1"
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents "2.3.2"
|
fsevents "2.3.2"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user