From 1caa5203283ae82adee58e65c4ecde88443b9504 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Tue, 2 Jul 2024 15:46:38 +0200 Subject: [PATCH] feat: add test for disabled fingrint in migration 66 --- .../66-move-final-desktop-settings.spec.ts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.spec.ts b/libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.spec.ts index 19be45640f..5140260f72 100644 --- a/libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.spec.ts +++ b/libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.spec.ts @@ -92,6 +92,45 @@ describe("MoveDesktopSettings", () => { global_desktopSettings_browserIntegrationFingerprintEnabled: false, }, }, + { + it: "migrates browser integration without fingerprint enabled", + preMigration: { + global_account_accounts: { + user1: {}, + otherUser: {}, + }, + user1: { + settings: { + minimizeOnCopyToClipboard: false, + }, + }, + otherUser: { + settings: { + random: "stuff", + }, + }, + global: { + enableBrowserIntegration: true, + }, + }, + postMigration: { + global_account_accounts: { + user1: {}, + otherUser: {}, + }, + global: {}, + user1: { + settings: {}, + }, + otherUser: { + settings: { + random: "stuff", + }, + }, + global_desktopSettings_browserIntegrationEnabled: true, + user_user1_desktopSettings_minimizeOnCopy: false, + }, + }, { it: "does not move non-existant values", preMigration: {