microsoft/playwright-test

screenshot not working while setting up options

luisandre69 opened this issue · 1 comments

While setting up the browserOptions on config.ts file.

`
import { ChromiumEnv, test, setConfig } from "@playwright/test";

const browserOptions = {
// Launch options:
headless: false,
slowMo: 50,
// Context options:
viewport: { width: 800, height: 600 },
ignoreHTTPSErrors: true,
// Testing options:
video: 'on',
screenshot: 'on',
};

test.runWith(new ChromiumEnv(browserOptions), { tag: 'chromium' });
`

the screenshot does not work with any of the available parameters listed on :

Available testing options:

screenshot: 'off' | 'on' | 'only-on-failure' - Whether to capture a screenshot after each test, off by default.
off - Do not capture screenshots.
on - Capture screenshot after each test.
only-on-failure - Capture screenshot after each test failure.

working as expected with the latest update, closing the issue.