From 2d6603cd541f19ae2d926722850ade2d9ee58400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 5 Jun 2026 04:08:01 +0200 Subject: [PATCH] test(e2e): align integration fixture with the consolidated status envelope The settings cards now read connection state from the consolidated /api/integrations/status envelope (the per-provider status routes were dropped from the section), so the mobile-layout fixture must supply the per-integration connected/configured fields the pills key on. --- e2e/settings-integrations-mobile.spec.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/e2e/settings-integrations-mobile.spec.ts b/e2e/settings-integrations-mobile.spec.ts index 17f4a1fbb..899c0a183 100644 --- a/e2e/settings-integrations-mobile.spec.ts +++ b/e2e/settings-integrations-mobile.spec.ts @@ -70,6 +70,18 @@ test.describe("/settings/integrations Pixel-5 layout", () => { lastAttemptAt: recent, lastError: null, consecutiveFailures: 0, + // v1.12.1 — the cards read connection state from this + // consolidated envelope (the per-provider routes were + // dropped from the section). The Withings pill keys on + // `connected`; the moodLog pill keys on `configured`. + configured: true, + connected: true, + connectedAt: "2026-04-01T12:00:00Z", + legacyLastSyncedAt: recent, + tokenExpiresAt: "2026-12-01T12:00:00Z", + tokenExpired: false, + scope: "user.info,user.metrics,user.activity", + hasActivityScope: true, }, { integration: "moodlog", @@ -78,6 +90,11 @@ test.describe("/settings/integrations Pixel-5 layout", () => { lastAttemptAt: recent, lastError: null, consecutiveFailures: 0, + configured: true, + enabled: true, + legacyLastSyncedAt: recent, + webhookSecret: "ml_xxxxxxxxxxxxxxxxxxxxxxxxxxxx", + entryCount: 42, }, ], },