test(ui): give the PDF tag the time the other PDF specs have

pdf.js and its worker load on first use. The other specs in this file
wait up to ten seconds for the result of that load. The first one waited
five, and missed the tag on a busy machine.

Assisted-by: Claude Code:claude-sonnet-5-5 node
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto committed 2026-10-21 00:20:02 +00:00
1 parent 7732c9492a
commit 8629744087
1 file changed
+2 -1
@@ -49,7 +49,8 @@ test.describe('Chat - PDF attachments', () => {
mimeType: 'application/pdf',
buffer: buildPdf('Quarterly revenue grew 42 percent'),
})
await expect(page.locator('.home-file-tag', { hasText: 'report.pdf' })).toBeVisible()
// pdf.js and its worker load on first use, so the tag can take a while.
await expect(page.locator('.home-file-tag', { hasText: 'report.pdf' })).toBeVisible({ timeout: 10_000 })
await page.getByTestId('chat-input').fill('Summarize')
await page.getByTestId('chat-send').click()