From 19ae40224e5505172fc322c3085f04e33a1e632b Mon Sep 17 00:00:00 2001 From: Daniel Sutton Date: Mon, 24 Aug 2026 12:15:33 +0100 Subject: [PATCH] test(webapp): assert a protected graced group is kept whole The protected-list case asserted only that the primary survives, so the group-level property was unpinned: protection is keyed off the primary, and the stamps must be kept with it. Third case on this branch of a test claiming more than it asserted. --- apps/webapp/test/runOpsMintShardSetFlip.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/webapp/test/runOpsMintShardSetFlip.test.ts b/apps/webapp/test/runOpsMintShardSetFlip.test.ts index 8773a878f..036f9e877 100644 --- a/apps/webapp/test/runOpsMintShardSetFlip.test.ts +++ b/apps/webapp/test/runOpsMintShardSetFlip.test.ts @@ -254,7 +254,11 @@ describe("replaceGlobalFeatureFlags — the admin page cannot bypass the stamp", }); const m = await readFlags(prisma, SET_KEYS); + // Kept WHOLE. Protection is keyed off the primary, so the stamps must survive with it; + // asserting only the primary leaves the group-level property unpinned. expect(m[FEATURE_FLAG.runOpsMintShardSet]).toBe("a"); + expect(m[FEATURE_FLAG.runOpsMintShardSetPrev]).toBeDefined(); + expect(m[FEATURE_FLAG.runOpsMintShardSetFlippedAt]).toBeDefined(); }); postgresTest("an ordinary flag keeps replace semantics", async ({ prisma }) => {