You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm trying to use test.extend in the following way:
import { test as base } from "@playwright/experimental-ct-react";
export type Options = { defaultItem: string };
// Extend basic test by providing a "defaultItem" option and a "todoPage" fixture.
export const test = base.extend<Options>({
// Define an option and provide a default value.
// We can later override it in the config.
defaultItem: ["Do stuff", { option: true }],
});
System info
Source code
Hi! I'm trying to use test.extend in the following way:
However, I'm receiving a TypeScript error:
Here's the repo: https://github.com/BlackySoul/playwright-test
Steps
cd playwright-test
npm install
lint:types
Expected
No error present
Actual
The text was updated successfully, but these errors were encountered: