From 24c45ad9e971c6536093558d74867179ba7fcdbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 3 Aug 2026 15:56:28 +0200 Subject: [PATCH] Return the sharing journey to the page Accept lives on The coach positive control navigates to the dashboard to prove the launcher renders for a delegate in their own record. It left the browser there, and the next step clicks Accept, which lives on the access page. The click waited out its timeout against a page that does not carry the button. An assertion inserted mid-journey has to restore the state it borrowed. --- e2e/account-sharing.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/account-sharing.spec.ts b/e2e/account-sharing.spec.ts index 7efa94349..b7e0a7984 100644 --- a/e2e/account-sharing.spec.ts +++ b/e2e/account-sharing.spec.ts @@ -288,6 +288,11 @@ test.describe("account sharing", () => { timeout: 10_000, }); + // Back to where the rest of this journey happens. The check above leaves + // the browser on the dashboard, and Accept lives on the access page. + await page.goto("/settings/access"); + await expect(row).toBeVisible(); + await page.locator('[data-slot="grant-accept"]').click(); await expect(row).toHaveAttribute("data-grant-state", "ACTIVE"); });