mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-26 02:24:43 +00:00
chore: generate
This commit is contained in:
@@ -19,11 +19,16 @@ test("/terminal toggles the terminal panel", async ({ page, gotoSession }) => {
|
|||||||
// which can steal focus from the prompt and prevent fill() from triggering
|
// which can steal focus from the prompt and prevent fill() from triggering
|
||||||
// the slash popover. Re-attempt click+fill until all retries are exhausted
|
// the slash popover. Re-attempt click+fill until all retries are exhausted
|
||||||
// and the popover appears.
|
// and the popover appears.
|
||||||
await expect.poll(async () => {
|
await expect
|
||||||
await prompt.click().catch(() => false)
|
.poll(
|
||||||
await prompt.fill("/terminal").catch(() => false)
|
async () => {
|
||||||
return slash.isVisible().catch(() => false)
|
await prompt.click().catch(() => false)
|
||||||
}, { timeout: 10_000 }).toBe(true)
|
await prompt.fill("/terminal").catch(() => false)
|
||||||
|
return slash.isVisible().catch(() => false)
|
||||||
|
},
|
||||||
|
{ timeout: 10_000 },
|
||||||
|
)
|
||||||
|
.toBe(true)
|
||||||
await page.keyboard.press("Enter")
|
await page.keyboard.press("Enter")
|
||||||
await expect(terminal).not.toBeVisible()
|
await expect(terminal).not.toBeVisible()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user