mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: add regression test for screencast bug (#22164)
Fixed firefox is already rolled in. Fixes https://github.com/microsoft/playwright/issues/22069
This commit is contained in:
parent
babb2bc3ee
commit
df6888a251
@ -292,6 +292,24 @@ it.describe('screencast', () => {
|
||||
expect(fs.existsSync(path)).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should work with weird screen resolution', async ({ browser }, testInfo) => {
|
||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22069' });
|
||||
const videosPath = testInfo.outputPath('');
|
||||
const size = { width: 1904, height: 609 };
|
||||
const context = await browser.newContext({
|
||||
recordVideo: {
|
||||
dir: videosPath,
|
||||
size
|
||||
},
|
||||
viewport: size,
|
||||
});
|
||||
const page = await context.newPage();
|
||||
const path = await page.video()!.path();
|
||||
expect(path).toContain(videosPath);
|
||||
await context.close();
|
||||
expect(fs.existsSync(path)).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should expose video path blank popup', async ({ browser }, testInfo) => {
|
||||
const videosPath = testInfo.outputPath('');
|
||||
const size = { width: 320, height: 240 };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user