test(app): broaden terminal find count assertion in find-in-pane spec

The terminal find pane matches the echoed printf command line in addition
to the printed output, so the actual count is 4 / 4. Match any non-zero
count, mirroring the chat assertion below it — this step only verifies
that find found something before clicking away.
This commit is contained in:
Mohamed Boudra
2026-05-31 12:45:29 +07:00
parent 33674e0b10
commit 7c4f8580e9
+1 -1
View File
@@ -120,7 +120,7 @@ test.describe("in-pane find", () => {
await waitForTerminalContent(page, (text) => text.includes("split needle two"), 10_000);
await openFind(page);
await typeFindQuery(page, "needle");
await expect(page.getByText(/1 \/ 2|2 \/ 2/)).toBeVisible({
await expect(page.getByText(/[1-9] \/ [1-9]/)).toBeVisible({
timeout: 10_000,
});
await page.getByTestId("workspace-file-pane").click();