Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: stabilize snapshot consent handling (#1304)

Engel Nyst39c816d38d96
diff --git a/tests/e2e/snapshots/support/seed-local-storage.ts b/tests/e2e/snapshots/support/seed-local-storage.ts
index 4a40887eee..edabf35c84 100644
--- a/tests/e2e/snapshots/support/seed-local-storage.ts
+++ b/tests/e2e/snapshots/support/seed-local-storage.ts
@@ -50,6 +50,7 @@ export async function seedLocalStorage(
window.localStorage.setItem("openhands-onboarded", "1");
}
if (!showConsentModal) {
+ window.localStorage.setItem("analytics-consent", "false");
window.localStorage.setItem("openhands-telemetry-consent", "denied");
}
if (!window.localStorage.getItem("openhands-backends")) {