mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
chore: generate
This commit is contained in:
parent
328c6de80d
commit
51835ecf90
@ -62,9 +62,7 @@ export async function waitTerminalReady(page: Page, input?: { term?: Locator; ti
|
||||
const timeout = input?.timeout ?? 10_000
|
||||
await expect(term).toBeVisible()
|
||||
await expect(term.locator("textarea")).toHaveCount(1)
|
||||
await expect
|
||||
.poll(() => terminalReady(page, term), { timeout })
|
||||
.toBe(true)
|
||||
await expect.poll(() => terminalReady(page, term), { timeout }).toBe(true)
|
||||
}
|
||||
|
||||
export async function runTerminal(page: Page, input: { cmd: string; token: string; term?: Locator; timeout?: number }) {
|
||||
@ -76,9 +74,7 @@ export async function runTerminal(page: Page, input: { cmd: string; token: strin
|
||||
await expect(textarea).toBeFocused()
|
||||
await page.keyboard.type(input.cmd)
|
||||
await page.keyboard.press("Enter")
|
||||
await expect
|
||||
.poll(() => terminalHas(page, { term, token: input.token }), { timeout })
|
||||
.toBe(true)
|
||||
await expect.poll(() => terminalHas(page, { term, token: input.token }), { timeout }).toBe(true)
|
||||
}
|
||||
|
||||
export async function openPalette(page: Page) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user