diff --git a/tests/browser/inbox-edit.spec.mjs b/tests/browser/inbox-edit.spec.mjs index bc6c000ff..fce5ecaa9 100644 --- a/tests/browser/inbox-edit.spec.mjs +++ b/tests/browser/inbox-edit.spec.mjs @@ -20,11 +20,14 @@ test("Inbox edits an owned reply in place and restores the reply draft", async ( await openPage(page, "Inbox"); const inbox = page.getByRole("region", { name: "Inbox", exact: true }); await expect(inbox.getByText("Checking recent activity…")).toHaveCount(0); - const conversation = inbox - .getByRole("list", { name: "Inbox conversations" }) - .getByRole("listitem") - .filter({ hasText: "Broadcast reply" }); - await conversation.getByRole("button", { name: /^Open / }).click(); + // The preview can settle on either reply as thread inputs arrive; the + // conversation's accessible identity is the stable target for this test. + await inbox + .getByRole("button", { + name: "Open Alice Fixture in #Alpha", + exact: true, + }) + .click(); const detail = inbox.getByRole("region", { name: "Inbox detail" }); const reply = detail.getByRole("textbox", { name: "Reply to thread",