fix(e2e): scope UI-02 prompt visibility to user chat bubble
Avoid strict-mode collision with truncated preview duplicate text.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user