lecture 18 of 200 completed

Configuration and multiple environments

One config file drives the whole suite: where the app is, how long to wait, which browsers, and how many retries.

What you'll learn

  • What lives in the Playwright config file
  • How one suite targets several environments
  • Why retries hide flakiness unless you watch the count

Playwright keeps nearly all its settings in one file, which makes playwright.config.ts the most important file in the repository after the tests themselves. Here is the version you will meet in real projects, explained line by line.

members only

Keep reading with the full course

The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.

See the options →