MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / openEditorPage

Function openEditorPage

e2e/utils.ts:114–120  ·  view source on GitHub ↗
(context: BrowserContext, extensionId: string, params?: string)

Source from the content-addressed store, hash-verified

112
113/** Open the script editor page */
114export async function openEditorPage(context: BrowserContext, extensionId: string, params?: string): Promise<Page> {
115 const page = await context.newPage();
116 const hash = params ? `#/script/editor?${params}` : "#/script/editor";
117 await page.goto(`chrome-extension://${extensionId}/src/options.html${hash}`);
118 await page.waitForLoadState("domcontentloaded");
119 return page;
120}
121
122async function focusMonacoEditor(page: Page): Promise<void> {
123 await page.locator(".monaco-editor").waitFor({ timeout: 30_000 });

Callers 3

createScriptAndGoToListFunction · 0.90
installScriptByCodeFunction · 0.85

Calls

no outgoing calls

Tested by 1

createScriptAndGoToListFunction · 0.72