mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-29 12:42:57 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user