fix(e2e): shell-ready waits on transport reload and /app redirect
Apply waitForChatComposer after messaging-transport reload and allow more time for /app to redirect before asserting the composer. Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
0d10d2bf93
commit
43500563ac
@ -6,7 +6,7 @@ async function openComposer(page: Page) {
|
||||
await signup(page, `composer-paste-${stamp}@rakazo.test`, "password12", "Paste Test");
|
||||
await completeOnboarding(page);
|
||||
await page.goto("/app", { waitUntil: "domcontentloaded" });
|
||||
await page.waitForURL(/\/app\/[^/]+$/);
|
||||
await page.waitForURL(/\/app\/[^/]+$/, { timeout: 60_000 });
|
||||
await waitForChatComposer(page);
|
||||
return page.getByRole("combobox", { name: /Message/ });
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { captureScreenshot, completeOnboarding, signup } from "./helpers";
|
||||
import { captureScreenshot, completeOnboarding, signup, waitForChatComposer } from "./helpers";
|
||||
|
||||
type ThreadPayload = {
|
||||
json?: {
|
||||
@ -68,7 +68,7 @@ test("labels a Sendblue group message with its actual transport", async ({ page
|
||||
await page.route("**/rpc/threads/get", fulfillWithInjection);
|
||||
|
||||
await page.reload({ waitUntil: "domcontentloaded" });
|
||||
await expect(page.getByRole("combobox", { name: /^Message/ })).toBeVisible({ timeout: 20_000 });
|
||||
await waitForChatComposer(page);
|
||||
const transportMessage = page.getByText("SMS · Alice: Dinner is at seven.");
|
||||
await expect(transportMessage).toBeVisible({ timeout: 20_000 });
|
||||
await captureScreenshot(page, testInfo, "sendblue-sms-transport");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user