Playwright · Function
expect.toPass
expect.toPass retries an asynchronous code block until its assertions pass. Configure the retry timeout and probe intervals when needed.
Last updated
Syntax
await expect(async () => { /* code and assertions */ }).toPass(options?)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expectexpect.pollexpect.configureexpect.extend