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

Function removeSourceThroughConsole

e2e/scenarios/custom-tools.test.ts:340–354  ·  view source on GitHub ↗
(input: {
  readonly target: TargetShape;
  readonly browser: BrowserSurface;
  readonly identity: Identity;
})

Source from the content-addressed store, hash-verified

338 });
339
340const removeSourceThroughConsole = (input: {
341 readonly target: TargetShape;
342 readonly browser: BrowserSurface;
343 readonly identity: Identity;
344}) =>
345 input.browser.session(input.identity, async ({ page, step }) => {
346 await step("Remove the custom tools source", async () => {
347 await page.goto(new URL("/integrations/repo?tab=source", input.target.baseUrl).toString(), {
348 waitUntil: "networkidle",
349 });
350 await page.getByRole("button", { name: "Remove" }).click();
351 await page.getByRole("button", { name: "Remove source" }).click();
352 await page.waitForURL(/\/integrations(?:\?|$)/, { timeout: 90_000 });
353 });
354 });
355
356scenario(
357 "Custom tools · Git source syncs, invokes, refreshes, and removes",

Callers 1

Calls 2

toStringMethod · 0.80
stepFunction · 0.50

Tested by

no test coverage detected