-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing a website that is a PWA hangs when using Role or reload #8123
Comments
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news. |
Hello @eroetman, We've investigated this usage scenario and identified the cause of this behavior. Unfortunately, Currently, as a workaround, we suggest disabling the interception of requests by the service worker using .beforeEach( async t => {
const idConnection = t.testRun.browserConnection.id;
const cdpClient = t.testRun.browserConnection.getNativeAutomation(idConnection)._client;
await cdpClient.Network.setBypassServiceWorker({bypass: true}) // Toggles ignoring of service worker for each request.
}) Please let us know your results. |
This fixed our issue, thanks! |
Since this workaround has helped you, we will close the issue. If you need further assistance, please let us know. |
What is your Scenario?
We want to test our product that also supports PWA (Progressive WebApp).
What is the Current behavior?
When testing with Testcafe 3.5.0 in native mode tests hang when using a Role or reloading during testing.
What is the Expected behavior?
We should be able to test a PWA just like any other website with a service worker.
What is the public URL of the test page? (attach your complete example)
https://demo.tigrenpwa.com/
This is not our site but the behavior is the same for the demonstartion of the issues.
What is your TestCafe test code?
Your complete configuration file
Your complete test report
Screenshots
No response
Steps to Reproduce
1.Run the test suppplied with the issue. Possibly this is flalky so if it succeeds please run again.
2.
3.
TestCafe version
3.5.0
Node.js version
v20.11.0
Command-line arguments
testcafe chrome:emulation:cdpPort=9222
Browser name(s) and version(s)
120.0.6099.234
Platform(s) and version(s)
macos 14.2.1
Other
No response
The text was updated successfully, but these errors were encountered: