(
page: Page,
org: { readonly name: string; readonly slug: string },
)
| 53 | }; |
| 54 | |
| 55 | const 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 | |
| 69 | const installSameWindowOAuthPopup = async (page: Page) => { |
| 70 | await page.addInitScript(() => { |
no test coverage detected