From d1e43fcd8c356b29e04e8a4ed3fbed9328e577d1 Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Mon, 27 Jul 2026 04:11:34 +0800 Subject: [PATCH] style: typed queries in slash-flow snapshot, widen chat-apply key union --- apps/web/tests/slash-flow.snapshot.ts | 4 ++-- packages/client/ui-conversation/tests/chat-apply.spec.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/tests/slash-flow.snapshot.ts b/apps/web/tests/slash-flow.snapshot.ts index 0fc2152ec4..5a043d8415 100644 --- a/apps/web/tests/slash-flow.snapshot.ts +++ b/apps/web/tests/slash-flow.snapshot.ts @@ -120,7 +120,7 @@ it('locked view state, connectWorkspace unlock, /echo claim chain, and blank-on- // View state: no session entity — the composer renders locked; only the // workspace picker is live. - const locked = await screen.findByPlaceholderText( + const locked = await screen.findByPlaceholderText( 'Choose a workspace to start', {}, { timeout: 10_000 }, ) expect(locked.disabled).toBe(true) @@ -137,7 +137,7 @@ it('locked view state, connectWorkspace unlock, /echo claim chain, and blank-on- }) fireEvent.click(within(dialog).getByRole('button', { name: 'Create workspace' })) - const composer = await screen.findByPlaceholderText( + const composer = await screen.findByPlaceholderText( 'Describe what you want to build', {}, { timeout: 10_000 }, ) expect(composer.disabled).toBe(false) diff --git a/packages/client/ui-conversation/tests/chat-apply.spec.tsx b/packages/client/ui-conversation/tests/chat-apply.spec.tsx index 1a6a8a66cb..1b2f70b68e 100644 --- a/packages/client/ui-conversation/tests/chat-apply.spec.tsx +++ b/packages/client/ui-conversation/tests/chat-apply.spec.tsx @@ -68,7 +68,7 @@ async function bench() { } /** First stored entry for a key (inject/store live directly on StoredEntry). */ -function renderEntryOf(slots: SlotsService, key: 'conversation' | 'conversation.view' | 'details') { +function renderEntryOf(slots: SlotsService, key: 'conversation' | 'conversation.session' | 'conversation.view' | 'details') { return slots.entries(key)[0] as undefined | { inject?: unknown; store?: unknown } }