fix(e2e): wait for shell-ready before reaction assertions after reload
Bootstrap can still be in flight after domcontentloaded on reload; match #94/#87 by waiting on data-ready and the composer before asserting persisted message reactions. Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
d1f7034aa5
commit
0d10d2bf93
@ -1,5 +1,5 @@
|
||||
import { expect, type Locator, type Page, type Route, test } from "@playwright/test";
|
||||
import { captureScreenshot, completeOnboarding, signup } from "./helpers";
|
||||
import { captureScreenshot, completeOnboarding, signup, waitForChatComposer } from "./helpers";
|
||||
|
||||
/** Submit from the Send control so an in-flight prior send cannot swallow Enter. */
|
||||
async function sendComposerMessage(page: Page, composer: Locator, text: string) {
|
||||
@ -254,6 +254,8 @@ test("message hover shows beside-bubble actions; reply links to parent", async (
|
||||
await expect(parentRow.getByTestId("message-reactions")).toContainText("❤️ 2");
|
||||
await captureScreenshot(page, testInfo, "message-multiple-reactions");
|
||||
await page.reload({ waitUntil: "domcontentloaded" });
|
||||
await waitForChatComposer(page);
|
||||
await expect(parentRow).toBeVisible({ timeout: 20_000 });
|
||||
await expect(parentRow.getByTestId("message-reactions")).toContainText("❤️ 2");
|
||||
await expect(parentRow.getByTestId("message-reactions")).toContainText("👍");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user