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.
This commit is contained in:
Marc-André Bombeck committed 2026-08-03 15:56:28 +02:00
1 parent 154449d77a
commit 24c45ad9e9
1 file changed
+5
+5
View File
@@ -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");
});