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.
This commit is contained in:
Daniel Sutton
2026-08-24 12:15:33 +01:00
parent 4edaee2eec
commit 19ae40224e
@@ -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 }) => {