MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / clickSignOut

Function clickSignOut

e2e/cloud/logout-stale-session.test.ts:38–49  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

36// while the shell is still hydrating and the radix menu never opens (same
37// idiom as auth-hint / org-switcher).
38const 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
51scenario(
52 "Sign-out · a browser whose session is already over is signed out, not handed an API error page",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected