lecture 14 of 180 completed

How parallel execution actually works

Playwright runs tests at the same time by default. Understanding workers explains both the speed and the surprises.

What you'll learn

  • What a worker is, and what it shares
  • Why test order is never guaranteed
  • Why isolated browsers still share one database

A suite that takes forty minutes gets run once a day. A suite that takes four minutes gets run on every commit. Parallel execution is the difference, and Playwright does it by default, which is why understanding it early prevents confusing failures.

A worker is a separate process running tests. Playwright starts several and hands each a share of the work. Four workers means four tests running at the same instant, in four independent browser processes.

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 →