I want to introduce my own configuration properties in my project that I'd use across my test files. Is there a way to do this in playwright.config.ts, e.g. in the use section? I'd do something like this:
const defaultConfig: PlaywrightTestConfig = defineConfig({ use: } myConfig: { prop1: val1, prop2: val2, prop3: val3, }, }
If it is not possible in playwright.config.ts, what is the suggested way of achieving this? Many thanks
This thread is trying to answer question "Is there a way to introduce custom configuration properties in the 'use' section of the playwright.config.ts file, and if not, what are the alternative solutions?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].