mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
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:
1 parent
154449d77a
commit
24c45ad9e9
1 file changed
+5
@@ -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");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user