diff --git a/apps/web/e2e/message-hover-actions.spec.ts b/apps/web/e2e/message-hover-actions.spec.ts index c511059..7ebbbf6 100644 --- a/apps/web/e2e/message-hover-actions.spec.ts +++ b/apps/web/e2e/message-hover-actions.spec.ts @@ -89,7 +89,7 @@ test("message hover shows beside-bubble actions; reply links to parent", async ( `hover-bot-${stamp} ${"please look into this ".repeat(7)}`, ); const botText = page.getByText(/i handled: hover-bot-/); - await expect(botText).toBeVisible({ timeout: 20_000 }); + await expect(transcript.getByText(/i handled: hover-bot-/)).toBeVisible({ timeout: 20_000 }); const botRow = transcript.locator(`[data-message-id]`).filter({ has: botText }).first(); await expect(botRow).toBeVisible(); await expectRailAtRest(page, botRow); @@ -404,7 +404,9 @@ test.describe("touch message actions", () => { const composer = page.getByRole("combobox", { name: /^Message/ }); await sendComposerMessage(page, composer, `touch-bot-${Date.now()}`); const botText = page.getByText(/i handled: touch-bot-/); - await expect(botText).toBeVisible({ timeout: 20_000 }); + await expect(page.getByTestId("transcript").getByText(/i handled: touch-bot-/)).toBeVisible({ + timeout: 20_000, + }); const row = page .getByTestId("transcript") .locator("[data-message-id]")