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

Function focusMonacoEditor

e2e/utils.ts:122–127  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

120}
121
122async function focusMonacoEditor(page: Page): Promise<void> {
123 await page.locator(".monaco-editor").waitFor({ timeout: 30_000 });
124 await page.locator(".view-lines").waitFor({ timeout: 15_000 });
125 await page.locator(".monaco-editor textarea.inputarea").waitFor({ state: "attached", timeout: 5_000 });
126 await page.locator(".monaco-editor textarea.inputarea").focus();
127}
128
129async function waitForSavedScriptInList(context: BrowserContext, extensionId: string): Promise<void> {
130 const listPage = await openOptionsPage(context, extensionId);

Callers 2

saveCurrentEditorFunction · 0.85
installScriptByCodeFunction · 0.85

Calls 1

waitForMethod · 0.65

Tested by

no test coverage detected