playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[BUG] Firefox: White video when trace + video is enabled

Open rado-o opened this issue 3 years ago • 4 comments

Context:

  • Playwright Version: 1.19.1
  • Environments: GitLab CI/CD: -- running in the docker image: mcr.microsoft.com/playwright:focal
  • Local: -- Windows 10 -- Node.js version: 16.13.2
  • Browser: Firefox (headless)

Code Snippet Sample Test

Describe the bug Blank videos are being recorded when running the tests in Firefox - headless mode. Reproduced in: GitLab CI/CD & running locally. Not reproduced in Firefox - headfull mode (locally). Not reproduced for Chromium/WebKit - headless mode. See report examples (with videos): Firefox (blank video) Chromium (OK) WebKit (OK)

rado-o avatar Feb 21 '22 10:02 rado-o

Thank you for the repro! Very helpful :)

I made a more minimal repro case:

import type { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
  testDir: './tests',
  reporter: [
    ['html', { open: 'never', outputFolder: './report' }],
    ['list'],
  ],
  use: {
    trace: 'on',
    video: 'on'
  },
  projects: [
    {
      name: 'Firefox',
      use: {
        browserName: 'firefox'
      },
    },
  ],
};

export default config;
import { test } from '@playwright/test';

test('Inventory Page - Navigate', async ({ page }) => {
    await page.goto('https://example.com');
    await page.waitForTimeout(2000);
})

-> when trace and video is enabled, Firefox ends up in a white video.

mxschmitt avatar Feb 22 '22 12:02 mxschmitt

A partner team is onboarding to Playwright 1.19, I recommended to use: { "trace": "retain-on-failure", "video": "retain-on-failure", } but strangely they only get traces. No video at all.

p01 avatar Mar 31 '22 10:03 p01

Any update on this? It is still happening in version 1.22.1

ivanrosvimi avatar May 19 '22 12:05 ivanrosvimi

This is still present in playwright 1.25.2. Any updates?

AdiRishi avatar Sep 16 '22 13:09 AdiRishi

We're seeing this error on playwright 1.27.1.

MasterOdin avatar Dec 20 '22 03:12 MasterOdin

Still seeing this error on 1.30.0-alpha-jan-5-2023 (@playwright/test package)

hmajid2301 avatar Jan 07 '23 00:01 hmajid2301