From 54629e7f40468bd7548df2df0d7d79447a198949 Mon Sep 17 00:00:00 2001 From: WeiCHEN Date: Tue, 22 Sep 2026 22:13:39 +0800 Subject: [PATCH] fix(e2e): scope UI-02 prompt visibility to user chat bubble Avoid strict-mode collision with truncated preview duplicate text. --- web/e2e/document-revision-runtime.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/e2e/document-revision-runtime.spec.ts b/web/e2e/document-revision-runtime.spec.ts index 7ee1eb59..892b2c45 100644 --- a/web/e2e/document-revision-runtime.spec.ts +++ b/web/e2e/document-revision-runtime.spec.ts @@ -828,7 +828,9 @@ test.describe.serial('document-revision-runtime UI acceptance', () => { { timeout: 60_000 }, ); await sendChat(page, prompt); - await expect(page.getByText(prompt.slice(0, 12))).toBeVisible({ timeout: 20_000 }); + await expect( + page.locator('[data-chat-role="user"]').filter({ hasText: prompt.slice(0, 12) }).last(), + ).toBeVisible({ timeout: 20_000 }); const taskRes = await taskRunWait; const status = taskRes.status(); if (status === 409) {