fix: type the health test mode, pace cards with the stream, and size the results panel
This commit is contained in:
parent
fa356ba5c5
commit
cdace7d170
7 changed files with 41 additions and 15 deletions
|
|
@ -104,12 +104,13 @@ describe('result presentation', () => {
|
|||
expect(region?.contains(action ?? null)).toBe(false)
|
||||
})
|
||||
|
||||
it('assigns a deliberate stagger order to arriving cards', () => {
|
||||
it('renders arriving cards without an artificial entrance delay', () => {
|
||||
const root = mountComponent(AssistantMessage, { turn: doneTurn(), canSave: true })
|
||||
const cards = root.querySelectorAll<HTMLElement>('article')
|
||||
|
||||
expect(cards[0]?.style.getPropertyValue('--card-order')).toBe('0')
|
||||
expect(cards[1]?.style.getPropertyValue('--card-order')).toBe('1')
|
||||
expect(cards.length).toBeGreaterThan(1)
|
||||
expect(cards[0]?.style.getPropertyValue('--card-order')).toBe('')
|
||||
expect(cards[1]?.style.getPropertyValue('--card-order')).toBe('')
|
||||
})
|
||||
|
||||
it('anchors a completed response at the top of the conversation viewport', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue