style: typed queries in slash-flow snapshot, widen chat-apply key union
This commit is contained in:
@@ -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
|
// View state: no session entity — the composer renders locked; only the
|
||||||
// workspace picker is live.
|
// workspace picker is live.
|
||||||
const locked = await screen.findByPlaceholderText(
|
const locked = await screen.findByPlaceholderText<HTMLTextAreaElement>(
|
||||||
'Choose a workspace to start', {}, { timeout: 10_000 },
|
'Choose a workspace to start', {}, { timeout: 10_000 },
|
||||||
)
|
)
|
||||||
expect(locked.disabled).toBe(true)
|
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' }))
|
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 },
|
'Describe what you want to build', {}, { timeout: 10_000 },
|
||||||
)
|
)
|
||||||
expect(composer.disabled).toBe(false)
|
expect(composer.disabled).toBe(false)
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ async function bench() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** First stored entry for a key (inject/store live directly on StoredEntry). */
|
/** 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 }
|
return slots.entries(key)[0] as undefined | { inject?: unknown; store?: unknown }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user