Skip to content

Commit 7b0def4

Browse files
chore: generate
1 parent 1d9c83b commit 7b0def4

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

packages/app/e2e/prompt/prompt-slash-terminal.spec.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ test("/terminal toggles the terminal panel", async ({ page, gotoSession }) => {
1919
// which can steal focus from the prompt and prevent fill() from triggering
2020
// the slash popover. Re-attempt click+fill until all retries are exhausted
2121
// and the popover appears.
22-
await expect.poll(async () => {
23-
await prompt.click().catch(() => false)
24-
await prompt.fill("/terminal").catch(() => false)
25-
return slash.isVisible().catch(() => false)
26-
}, { timeout: 10_000 }).toBe(true)
22+
await expect
23+
.poll(
24+
async () => {
25+
await prompt.click().catch(() => false)
26+
await prompt.fill("/terminal").catch(() => false)
27+
return slash.isVisible().catch(() => false)
28+
},
29+
{ timeout: 10_000 },
30+
)
31+
.toBe(true)
2732
await page.keyboard.press("Enter")
2833
await expect(terminal).not.toBeVisible()
2934
})

0 commit comments

Comments
 (0)