Skip to content
masterclass Buddy

Playwright · Function

expect.configure

expect.configure creates an expect function with reusable defaults, such as an assertion timeout or soft assertions. Use the returned function for later assertions.

Last updated

Syntax

const configuredExpect = expect.configure({ timeout?: number, soft?: boolean });

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • expect
  • expect.poll
  • expect.soft
  • expect.toPass

Source: Assertions | Playwright. Checked 2026-11-03.