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

Function requestOrgSlugOf

e2e/cloud/org-multitab-cookie.test.ts:41–51  ·  view source on GitHub ↗
(page: typeof tab1)

Source from the content-addressed store, hash-verified

39 // This is what makes the two tabs independent; the shared session cookie
40 // is irrelevant to it.
41 const requestOrgSlugOf = async (page: typeof tab1): Promise<string> => {
42 const matching = page.waitForRequest(
43 (request) =>
44 request.url().includes("/api/") &&
45 request.headers()["x-executor-organization"] !== undefined,
46 { timeout: 15_000 },
47 );
48 // Nudge the app to refetch so a fresh scoped request goes out.
49 void page.reload({ waitUntil: "commit" });
50 return (await matching).headers()["x-executor-organization"]!;
51 };
52
53 let slugA = "";
54 let slugB = "";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected