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:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user