This thread is trying to answer question "Which timeout setting do API requests use?"
I see, based on documentation https://playwright.dev/docs/api/class-page#page-set-default-navigation-timeout
the navigationTimeout
is applied to the following methods
page.goBack()
page.goForward()
page.goto()
page.reload()
page.setContent()
page.waitForNavigation()
page.waitForURL()
This page about request.get()
https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get
I assume there is no global option to set a timeout for this method, only as a parameter in the object
BTW, it's set to 30 seconds by default
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 [email protected].