From a557745e59ce9ef106fb62529a9fb1503663da78 Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 17 Jul 2026 22:52:13 -0400 Subject: [PATCH] test: update e2e tracer count-line assertions for task 0033 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The state-aware count line from task 0033 (1166a48) renders `count: N open of M total`, and the unit tests were updated to match, but the three e2e tracer assertions still expected the old bare `count: N of M total`. They are skipped without GITEA_AXI_E2E_URL, so the staleness only surfaced in CI, where the e2e tier runs. Update them to the state-qualified form the shipped code already produces — default `open`, `--state closed` → `closed`. The code was correct; the tests were stale. --- test/e2e/tracer.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/tracer.test.ts b/test/e2e/tracer.test.ts index 5add944..edd1aac 100644 --- a/test/e2e/tracer.test.ts +++ b/test/e2e/tracer.test.ts @@ -40,7 +40,7 @@ describe.skipIf(!E2E_URL)("end-to-end: tracer command set", () => { expect(exitCode).toBe(0); const lines = stdout.split("\n"); - expect(lines[0]).toBe("count: 3 of 3 total"); + expect(lines[0]).toBe("count: 3 open of 3 total"); expect(lines[1]).toBe("issues[3]{number,title,state,author,created}:"); for (const title of instance.openTitles) { expect(stdout).toContain(title); @@ -58,7 +58,7 @@ describe.skipIf(!E2E_URL)("end-to-end: tracer command set", () => { }); expect(exitCode).toBe(0); - expect(stdout).toContain("count: 1 of 1 total"); + expect(stdout).toContain("count: 1 closed of 1 total"); expect(stdout).toContain(instance.closedTitle); expect(stdout).toContain(",closed,"); }); @@ -69,7 +69,7 @@ describe.skipIf(!E2E_URL)("end-to-end: tracer command set", () => { }); expect(exitCode).toBe(0); - expect(stdout).toContain("count: 1 of 3 total"); + expect(stdout).toContain("count: 1 open of 3 total"); expect(stdout).toContain("issues[1]{number,title,state,author,created}:"); expect(stdout).toContain("issue list --limit "); });