You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem we are having is when we click on a link which triggers the beforeunload dialog, after we dismiss the dialog and try to interact with the page again, we get timeout errors.
@dgozman Yes using PLAYWRIGHT_SKIP_NAVIGATION_CHECK environment variable works. This is the route we were going to take to be able to use 1.49 but we don't think it's a long-term solution.
Version
1.49.0
Steps to reproduce
Reported by @chrisbottin in #32899 (comment).
The problem we are having is when we click on a link which triggers the
beforeunload
dialog, after we dismiss the dialog and try to interact with the page again, we get timeout errors.Here is a simple test replicating the error ...
Expected behavior
Test passes.
Actual behavior
The test fails on the line
await page.getByRole('menuitem', {name: 'Teams'}).click({timeout: 1000});
with the error:Additional context
During debugging, I noticed the
pendingDocument()
is set to{documentId: undefined, request: undefined}
If this line
playwright/packages/playwright-core/src/server/page.ts
Line 472 in b5bd543
Environment
The text was updated successfully, but these errors were encountered: