test(desktop): seed the override test with a live preview feature

The merge with main crossed two changes: main added the thread-scoped
ACP session experiment and seeded its store test with `projects: false`,
while this branch promoted Projects out of preview-features. `getOverrides`
filters IDs that are no longer in the manifest, so `setOverride` rewrote
storage without the stale `projects` key and the assertion failed.

Seed with `pulse` instead — still a preview feature, so the test keeps
binding what it was written to bind: setting one override preserves the
others rather than clobbering them.

Signed-off-by: Matt Toohey <contact@matttoohey.com>
This commit is contained in:
Matt Toohey
2026-09-02 16:17:49 +10:00
parent d220d5d3d8
commit 91c3f8da8f

View File

@@ -47,7 +47,7 @@ test("setOverride persists stable IDs but unknown IDs stay filtered on read", ()
});
test("thread-scoped ACP session preference persists without changing existing experiments", () => {
const { values } = installStorage({ workflows: true, projects: false });
const { values } = installStorage({ workflows: true, pulse: false });
setOverride("threadScopedAcpSessions", true);
@@ -55,7 +55,7 @@ test("thread-scoped ACP session preference persists without changing existing ex
values.get(OVERRIDES_KEY),
JSON.stringify({
workflows: true,
projects: false,
pulse: false,
threadScopedAcpSessions: true,
}),
);