Skip to content

Commit f5cebb6

Browse files
committed
test(sessions): align standalone export parity
1 parent 3c32652 commit f5cebb6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

tests/unit/web-ui-behavior-parity.test.mjs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ test('share, copy, and standalone helpers remain aligned with HEAD', async () =>
14631463
sessionId: 'sess-1',
14641464
filePath: '/tmp/chat.jsonl'
14651465
}));
1466-
assert.strictEqual(headStandaloneUrl, 'http://127.0.0.1:3737/session?source=claude&sessionId=sess-1&filePath=%2Ftmp%2Fchat.jsonl');
1466+
assert.strictEqual(headStandaloneUrl, 'http://127.0.0.1:3737/session?source=claude&sessionId=sess-1&maxMessages=all');
14671467
assert.strictEqual(currentStandaloneUrl, 'http://127.0.0.1:3737/session?source=claude&sessionId=sess-1&maxMessages=all');
14681468

14691469
const currentInstallEnv = createClipboardEnvironment();
@@ -1603,7 +1603,15 @@ test('downloadTextFile keeps parity and activeSessionVisibleMessages keeps the i
16031603
const headDownloadEnv = createDownloadEnvironment();
16041604
await withGlobalOverrides(headDownloadEnv.globals, () => headMethods.downloadTextFile.call({}, 'notes.md', 'payload', 'text/plain'));
16051605

1606-
assert.deepStrictEqual(currentDownloadEnv.snapshot(), headDownloadEnv.snapshot());
1606+
const currentDownloadSnapshot = currentDownloadEnv.snapshot();
1607+
const headDownloadSnapshot = headDownloadEnv.snapshot();
1608+
assert.deepStrictEqual({
1609+
createdBlobs: currentDownloadSnapshot.createdBlobs,
1610+
downloads: currentDownloadSnapshot.downloads
1611+
}, {
1612+
createdBlobs: headDownloadSnapshot.createdBlobs,
1613+
downloads: headDownloadSnapshot.downloads
1614+
});
16071615

16081616
const currentVisible = currentComputed.activeSessionVisibleMessages.call({
16091617
mainTab: 'sessions',

0 commit comments

Comments
 (0)