Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

test(e2e): pin the measured instance-metrics fields on the wire and the deleted derived one (PIN-269)

Luigi Agostia605b64524e5
diff --git a/tests/e2e/scenarios/infra/system-extended.sh b/tests/e2e/scenarios/infra/system-extended.sh
index c3e23e94..660bc82d 100644
--- a/tests/e2e/scenarios/infra/system-extended.sh
+++ b/tests/e2e/scenarios/infra/system-extended.sh
@@ -15,7 +15,11 @@ assert_ok "navigate"
pt_get "/instances/metrics"
assert_ok "get instance metrics"
assert_json_exists "$RESULT" '.[0].instanceId'
-assert_json_exists "$RESULT" '.[0].jsHeapUsedMB'
+# The measured fields this endpoint used to drop, pinned on the wire: it once
+# published only values derived from memoryMB while omitting memoryMB itself.
+assert_json_exists "$RESULT" '.[0].memoryMB'
+assert_json_exists "$RESULT" '.[0].renderers'
+assert_json_not_exists "$RESULT" '.[0].jsHeapUsedMB' "no derived heap field on the wire"
end_test