mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
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:
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()
|
||||
|
||||
Reference in new issue
Block a user