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
We recently deployed an OpenFeature-compliant feature flag daemon, flagd, but now all of our Cypress E2E tests are failing because the page cannot be rendered when under test. However, the application works fine when accessed manually in a browser.
No meaningful errors are given during the testrun.
The app has a retry mechanism if the Feature Flag WebClient can't be reached. It attempts to reconnect 5 times (1 attempt per second) before initializing without Feature Flags. You might want to increase the defaultCommandTimeout accordingly.
I've attached a very basic test case using the latest Cypress version to illustrate the issue.
I tested it with fresh installations of Cypress 13 and 14 (latest).
As far as I can tell, this is not an HTTP request but rather something related to Protocol Buffers (ProtoBuf) or gRPC. The request mentioned above does not return anything via a GET request. It appears as a POST request in the Network tab.
If you double-click on this request in Firefox’s Network panel, you will see a stream that is regularly updated and if we block both requests within the network panel, the tests are running fine.
After further investigation, I found that the request above exposes Access-Control-Expose-Headers, which suggests that it might indeed be related to gRPC.
Current behavior
We recently deployed an OpenFeature-compliant feature flag daemon, flagd, but now all of our Cypress E2E tests are failing because the page cannot be rendered when under test. However, the application works fine when accessed manually in a browser.
No meaningful errors are given during the testrun.
Environment
ResolveAll
Would appreciate any insights or ideas on troubleshooting this further! 🚀
Further Context
defaultCommandTimeout
accordingly.Test code to reproduce
I've created a simple failing test: https://github.com/gearsdigital/cypress-flagd-mre
💡 We can provide a docker image to create an isolated testing context. Just let me know!
Cypress Version
14.0.3, 13.17.0
Node version
v20.16.0
Operating System
macOS 15.3.1 (also in ci with different OS like debian or ubuntu)
Debug Logs
debug.log
Issue Details & Assumption
fetch
API in a way that disrupts something.The text was updated successfully, but these errors were encountered: