(context: BrowserContext, extensionId: string)
| 127 | } |
| 128 | |
| 129 | async 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 | |
| 142 | export async function saveCurrentEditor(context: BrowserContext, extensionId: string, page: Page): Promise<void> { |
| 143 | await focusMonacoEditor(page); |
no test coverage detected