Просмотр исходного кода

style: typed queries in slash-flow snapshot, widen chat-apply key union

imccyu 1 месяц назад
Родитель
Сommit
d1e43fcd8c

+ 2 - 2
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<HTMLTextAreaElement>(
     '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<HTMLTextAreaElement>(
     'Describe what you want to build', {}, { timeout: 10_000 },
   )
   expect(composer.disabled).toBe(false)

+ 1 - 1
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 }
 }