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

Function expectOrgShell

e2e/cloud/oauth-callback-org-scope.test.ts:55–67  ·  view source on GitHub ↗
(
  page: Page,
  org: { readonly name: string; readonly slug: string },
)

Source from the content-addressed store, hash-verified

53};
54
55const expectOrgShell = async (
56 page: Page,
57 org: { readonly name: string; readonly slug: string },
58) => {
59 await page.waitForURL(
60 (url) => url.pathname === `/${org.slug}` || url.pathname === `/${org.slug}/`,
61 {
62 timeout: 30_000,
63 },
64 );
65 await page.getByRole("button", { name: new RegExp(escapeRegExp(org.name)) }).waitFor();
66 await page.getByRole("heading", { name: "Integrations" }).waitFor();
67};
68
69const installSameWindowOAuthPopup = async (page: Page) => {
70 await page.addInitScript(() => {

Calls 1

escapeRegExpFunction · 0.70

Tested by

no test coverage detected