Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions

Jump to navigation Jump to search
m
Line 1,691: Line 1,691:


=== Configuration File ===
=== Configuration File ===
Cleaning up <code>playwright.config.ts</code>
* removing default settings
* removing comments
There are
* global settings, and
* global runtime settings in the <code>use:{...}</code> block.
Then inside the <code>projects[{...},{...} ...]</code> array each node has a name, and can then override any of the global settings, and runtime settings in a <code>use:{...}</code> subblock.
You can also create and use entirely separate <code>*.config.ts</code> files and run them with <code>npx playwright test --config=playwright-prod.config.ts</code>
Also see [https://playwright.dev/docs/test-configuration test configuration] and [https://playwright.dev/docs/test-use-options test use options] in the Playwright documentation.
=== Fixtures ===
=== Fixtures ===
=== Project Setup and Teardown ===
=== Project Setup and Teardown ===

Navigation menu