(page: Page)
| 36 | // while the shell is still hydrating and the radix menu never opens (same |
| 37 | // idiom as auth-hint / org-switcher). |
| 38 | const clickSignOut = async (page: Page) => { |
| 39 | for (let attempt = 1; ; attempt++) { |
| 40 | try { |
| 41 | await page.keyboard.press("Escape"); |
| 42 | await page.getByRole("button", { name: /Test User/ }).click(); |
| 43 | await page.getByRole("menuitem", { name: "Sign out" }).click({ timeout: 5_000 }); |
| 44 | return; |
| 45 | } catch (error) { |
| 46 | if (attempt >= 3) throw error; |
| 47 | } |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | scenario( |
| 52 | "Sign-out · a browser whose session is already over is signed out, not handed an API error page", |
no outgoing calls
no test coverage detected