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

Function syncSourceInConsole

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

Source from the content-addressed store, hash-verified

293 });
294
295const syncSourceInConsole = (input: {
296 readonly target: TargetShape;
297 readonly browser: BrowserSurface;
298 readonly identity: Identity;
299 readonly expectedNotice: string;
300 readonly expectedToolCount: string;
301}) =>
302 input.browser.session(input.identity, async ({ page, step }) => {
303 await step(`Sync custom tools and see ${input.expectedNotice}`, async () => {
304 await page.goto(new URL("/integrations/repo?tab=source", input.target.baseUrl).toString(), {
305 waitUntil: "networkidle",
306 });
307 await page.getByRole("button", { name: "Sync" }).click();
308 await page.getByText(input.expectedNotice).waitFor({ timeout: 90_000 });
309 await page
310 .locator("p")
311 .filter({ hasText: new RegExp(`^${input.expectedToolCount}$`) })
312 .waitFor({ timeout: 90_000 });
313 });
314 });
315
316const syncCollectFailureInConsole = (input: {
317 readonly target: TargetShape;

Callers 1

Calls 2

toStringMethod · 0.80
stepFunction · 0.50

Tested by

no test coverage detected