mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
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.
This commit is contained in:
1 parent
f531494c59
commit
2d6603cd54
1 file changed
+17
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user