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

Function waitForSavedScriptInList

e2e/utils.ts:129–140  ·  view source on GitHub ↗
(context: BrowserContext, extensionId: string)

Source from the content-addressed store, hash-verified

127}
128
129async function waitForSavedScriptInList(context: BrowserContext, extensionId: string): Promise<void> {
130 const listPage = await openOptionsPage(context, extensionId);
131 try {
132 await listPage.locator("#script-list").waitFor({ timeout: 15_000 });
133 await listPage
134 .locator("#script-list .arco-table-row, #script-list .script-list-card")
135 .first()
136 .waitFor({ state: "visible", timeout: 30_000 });
137 } finally {
138 await listPage.close();
139 }
140}
141
142export async function saveCurrentEditor(context: BrowserContext, extensionId: string, page: Page): Promise<void> {
143 await focusMonacoEditor(page);

Callers 1

saveCurrentEditorFunction · 0.85

Calls 3

openOptionsPageFunction · 0.85
waitForMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected