Rayrun
← Back to Discord Forum

expect timeout

Is there a way to change the expect timeout globally not from config (i.e. without test runner)

This thread is trying to answer question "Is there a way to change the expect timeout globally without using the test runner?"

2 replies
refactoreric

Hi Tally, I haven't used it, but I think you can use expect.configure for this: https://playwright.dev/docs/test-assertions#expectconfigure

Yeah we recommend expect configure for that. We internally use internal APIs to set it from the test-runner.

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.