mirror of
https://github.com/block/buzz.git
synced 2026-10-29 05:21:31 +00:00
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:
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user