From 619aacf1f75e07292410d87cbbfb17d92ebcf50c Mon Sep 17 00:00:00 2001 From: Piotr Tomczewski Date: Fri, 3 Apr 2026 13:56:19 +0200 Subject: [PATCH] fix: update browser e2e get-tree assertion to match new response shape PR #45 changed the get-tree IPC response from a flat array to { nodes, totalCount }, but browser.test.ts was not updated to match, causing the release workflow to fail on every push to main. Co-Authored-By: Claude Sonnet 4.6 --- packages/e2e-tests/src/browser.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/e2e-tests/src/browser.test.ts b/packages/e2e-tests/src/browser.test.ts index 672f2a4..13da5dc 100644 --- a/packages/e2e-tests/src/browser.test.ts +++ b/packages/e2e-tests/src/browser.test.ts @@ -71,7 +71,7 @@ describe('Browser e2e', () => { it('get-tree returns real component hierarchy', async () => { const resp = await sendIpcCommand(socketPath, { type: 'get-tree' }); expect(resp.ok).toBe(true); - const nodes = resp.data as Array<{ displayName: string; type: string; label: string }>; + const { nodes } = resp.data as { nodes: Array<{ displayName: string; type: string; label: string }> }; expect(nodes.length).toBeGreaterThan(5); const names = nodes.map((n) => n.displayName);