grafana/e2e-playwright/utils
Ivan Ortega Alba f4a4a35ba1
E2E: fix perf-test flakiness caused by unhandled response.body() error (#123323)
When `response.body()` throws a Protocol error (e.g. for cached or
redirect responses where CDP has no body data), the `#requestsInFlight`
counter was never decremented, causing `stopListening()` to hang
indefinitely and the test to time out.

Wrap the async body read and sizes call in a try/finally so
`#requestsInFlight` is always decremented. Also move `stopListening()`
before metrics collection so all responses are captured, and await
`page.close()`.
2026-04-23 16:15:10 +02:00
..
axe-a11y Chore: Add lint rule for consistent type imports (#121336) 2026-03-30 12:44:01 +01:00
annotation-api-mock.ts Annotations: Fix plot & react desync (#122371) 2026-04-16 06:57:49 -05:00
dashboard-helpers.ts Chore: Add lint rule for consistent type imports (#121336) 2026-03-30 12:44:01 +01:00
prometheus-helpers.ts Chore: Add lint rule for consistent type imports (#121336) 2026-03-30 12:44:01 +01:00
RequestsRecorder.ts E2E: fix perf-test flakiness caused by unhandled response.body() error (#123323) 2026-04-23 16:15:10 +02:00
scope-helpers.ts Chore: Add lint rule for consistent type imports (#121336) 2026-03-30 12:44:01 +01:00
scopes.ts Chore: Add lint rule for consistent type imports (#121336) 2026-03-30 12:44:01 +01:00