From 862974408756ee23462df4b051f54543914c2452 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 21 Oct 2026 00:20:02 +0000 Subject: [PATCH] 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 --- core/http/react-ui/e2e/chat-pdf-attachment.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/chat-pdf-attachment.spec.js b/core/http/react-ui/e2e/chat-pdf-attachment.spec.js index 09251d603..d42696222 100644 --- a/core/http/react-ui/e2e/chat-pdf-attachment.spec.js +++ b/core/http/react-ui/e2e/chat-pdf-attachment.spec.js @@ -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()