Stabilize cross-browser workflow verification

This commit is contained in:
SimpleTest 2026-07-25 17:16:27 +03:00
parent 62f1c4d9fc
commit 4f2ab7d205
2 changed files with 9 additions and 2 deletions

View File

@ -211,8 +211,13 @@ test("two users complete medicine tracking, handover, realtime chat, and blind r
await expect(
replacement.page.getByRole("heading", { name: "Private match chat" }),
).toBeVisible();
const replacementName =
runID && fixturePassword
? "Staging E2E Replacement Helper"
: "E2E Replacement Helper";
await expect(
requester.page.getByRole("link", { name: "Staging E2E Replacement Helper" }),
requester.page.getByRole("link", { name: replacementName, exact: true }),
).toBeVisible();
await expect(helper.page.getByRole("heading", { name: "Private match chat" })).toHaveCount(0);

View File

@ -45,7 +45,9 @@ test("nearby alerts, private notification inbox, preferences, and data export wo
await preferenceForm.getByRole("button", { name: "Save preferences" }).click();
await expect(subscriber.page.getByText("Notification preferences saved.")).toBeVisible();
await subscriber.page.getByRole("link", { name: "Nearby alerts" }).click();
await subscriber.page
.getByRole("link", { name: "Nearby alerts", exact: true })
.click();
const subscriptionForm = subscriber.page.locator("#nearby-subscription-form");
await subscriptionForm.getByLabel("Alert name").fill(alertName);
await subscriptionForm.getByLabel("Private area label").fill(privateArea);