Our tests are failing quite frequently due to error Navigation failed: Timed out waiting for the page load event.
From what I see log is supposed to contain active requests but there are none including, giving me no information about what might be wrong.
How to debug this problem?
Environment
Node version: 16.18.0
@percy/cli version: ^1.27.3
Version of Percy SDK you’re using: @percy/playwright : 1.0.4
OS version: ubuntu 20.04, github action runner 2.311
Details
Our test is failing and "Active requests:" gives no information.
Debug logs
[percy:core:snapshot] - url: http://localhost:3000/chats/R9DQ9NCEEO/PKJBMOKFYA (0ms)
[percy:core:snapshot] - widths: 1920px (0ms)
[percy:core:snapshot] - minHeight: 1080px (0ms)
[percy:core:snapshot] - enableJavaScript: false (0ms)
[percy:core:snapshot] - cliEnableJavaScript: true (0ms)
[percy:core:snapshot] - disableShadowDOM: false (0ms)
[percy:core:snapshot] - discovery.allowedHostnames: localhost, localhost, cdn.livechatinc.com (0ms)
[percy:core:snapshot] - clientInfo: @percy/playwright/1.0.4 (0ms)
[percy:core:snapshot] - environmentInfo: @percy/playwright/1.0.4 (0ms)
[percy:core:snapshot] - domSnapshot: true (0ms)
[percy:core] Discovering resources: Chats | Chat transfer modal (1ms)
[percy:core] Asset discovery Browser Page enable JS: false (0ms)
[percy:core:page] Page created (4ms)
[percy:core:page] Resize page to 1920x1080 @1x (23ms)
[percy:core:page] Navigate to: http://localhost:3000/chats/R9DQ9NCEEO/PKJBMOKFYA (2ms)
[percy:core:page] Page closed (3799ms)
[percy:core] Encountered an error taking snapshot: Chats | Chat transfer modal (1ms)
[percy:core] Error: Navigation failed: Timed out waiting for the page load event
Active requests:
at Network._throwTimeoutError (file:///runner/_work/my.livechatinc.com/my.livechatinc.com/node_modules/@percy/core/dist/network.js:105:11)
at Page.goto (file:///runner/_work/my.livechatinc.com/my.livechatinc.com/node_modules/@percy/core/dist/page.js:[97](https://github.com/livechat/my.livechatinc.com/actions/runs/6945890768/job/18896519627?pr=19548#step:11:98):20)
at async captureSnapshotResources (file:///runner/_work/my.livechatinc.com/my.livechatinc.com/node_modules/@percy/core/dist/discovery.js:177:3)
at async Object.task (file:///runner/_work/my.livechatinc.com/my.livechatinc.com/node_modules/@percy/core/dist/discovery.js:333:7)
at async generatePromise (file:///runner/_work/my.livechatinc.com/my.livechatinc.com/node_modules/@percy/core/dist/utils.js:121:115) (0ms)
The problem
Our tests are failing quite frequently due to error
Navigation failed: Timed out waiting for the page load event
. From what I see log is supposed to contain active requests but there are none including, giving me no information about what might be wrong.How to debug this problem?
Environment
16.18.0
@percy/cli
version:^1.27.3
@percy/playwright
:1.0.4
ubuntu 20.04
, github action runner2.311
Details
Our test is failing and "Active requests:" gives no information.
Debug logs
Code to reproduce issue
Unable to share.