percy / percy-playwright

Playwright client library for visual testing with Percy
MIT License
17 stars 6 forks source link

Percy timeouts waiting for "load" event but gives no information about active requests #291

Closed shwarcu closed 11 months ago

shwarcu commented 12 months ago

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

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)

Code to reproduce issue

Unable to share.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.