mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-29 07:20:43 +00:00
Six gates clicked a button named "Open sidebar" on arrival, which encoded a default rather than a behaviour. 5c849331 opened the rail on desktop, the button became "Close sidebar", and three gates waited thirty seconds each on a room that was working.
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import { test, expect } from '@playwright/test'
|
|
import { rail } from './rail'
|
|
import { serveExport } from './export'
|
|
import { signIn, answer } from '../session'
|
|
|
|
/**
|
|
* THE COLUMN IS THE SAME COLUMN IN EVERY ROOM.
|
|
*
|
|
* Conversations were drawn only under Chat and Home, so a reader standing in
|
|
* Dev, Drive or Board could not see one without going back to Chat to look.
|
|
* What you have said is not a property of where you are standing.
|
|
*
|
|
* Asserted in Drive on purpose: it is the room furthest from a conversation, so
|
|
* a list that reaches it reaches all of them.
|
|
*/
|
|
|
|
test('a room that is not Chat still lists the conversations', async ({ page }) => {
|
|
await signIn(page)
|
|
await answer(page, '/v1/agents/chat/conversations', {
|
|
conversations: [
|
|
{ id: 't-aurora', title: 'Aurora', updatedAt: new Date().toISOString() },
|
|
],
|
|
})
|
|
|
|
const site = await serveExport()
|
|
try {
|
|
await page.setViewportSize({ width: 1440, height: 900 })
|
|
await page.goto(`${site.url}/drive`)
|
|
|
|
await rail(page, '[data-slot="sidebar"]')
|
|
await expect(page.getByRole('button', { name: 'Aurora' })).toBeVisible({ timeout: 20000 })
|
|
} finally {
|
|
await site.close()
|
|
}
|
|
})
|