From 950d220a3088cdb2ec2279c49b420f01f5c5c0d5 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Wed, 12 Aug 2026 18:08:31 -0700 Subject: [PATCH] test(browser): require partitioned cookie removal (STA-4061) --- ...rowser-cookie-import-partition-rollback.electron.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/browser/browser-cookie-import-partition-rollback.electron.test.ts b/src/main/browser/browser-cookie-import-partition-rollback.electron.test.ts index d0014a2d6de..5ee11981251 100644 --- a/src/main/browser/browser-cookie-import-partition-rollback.electron.test.ts +++ b/src/main/browser/browser-cookie-import-partition-rollback.electron.test.ts @@ -160,15 +160,15 @@ async function runFixture(): Promise { } describe('non-Google partitioned cookie under a failed Electron cookie clear', () => { - it('never resurrects a removed cookie without its partition key', async () => { + it('never resurrects a removed partitioned cookie', async () => { const result = await runFixture() expect(result.beforePartitionKey).toEqual(EXPECTED_PARTITION_KEY) expect(result.clearError).toContain('Could not clear existing cookies') // STA-4061: rollback rebuilt this cookie through cookies.set, which drops partitionKey. expect( - result.remainingChips.filter((cookie) => !cookie.partitionKey), - `chips-auth was downgraded to unpartitioned: ${JSON.stringify(result.remainingChips)}` + result.remainingChips, + `chips-auth survived: ${JSON.stringify(result.remainingChips)}` ).toEqual([]) expect(result.remainingPlain).toEqual([]) }, 90_000)