2
0
opencode-agent[bot] 1 сар өмнө
parent
commit
7b0def4b81

+ 10 - 5
packages/app/e2e/prompt/prompt-slash-terminal.spec.ts

@@ -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
   // the slash popover. Re-attempt click+fill until all retries are exhausted
   // and the popover appears.
-  await expect.poll(async () => {
-    await prompt.click().catch(() => false)
-    await prompt.fill("/terminal").catch(() => false)
-    return slash.isVisible().catch(() => false)
-  }, { timeout: 10_000 }).toBe(true)
+  await expect
+    .poll(
+      async () => {
+        await prompt.click().catch(() => false)
+        await prompt.fill("/terminal").catch(() => false)
+        return slash.isVisible().catch(() => false)
+      },
+      { timeout: 10_000 },
+    )
+    .toBe(true)
   await page.keyboard.press("Enter")
   await expect(terminal).not.toBeVisible()
 })