Skip to content

Commit 7ba7a0f

Browse files
piotrskiclaude
andauthored
fix: update browser e2e get-tree assertion to match new response shape (#49)
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 <noreply@anthropic.com>
1 parent a1bed65 commit 7ba7a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/e2e-tests/src/browser.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('Browser e2e', () => {
7171
it('get-tree returns real component hierarchy', async () => {
7272
const resp = await sendIpcCommand(socketPath, { type: 'get-tree' });
7373
expect(resp.ok).toBe(true);
74-
const nodes = resp.data as Array<{ displayName: string; type: string; label: string }>;
74+
const { nodes } = resp.data as { nodes: Array<{ displayName: string; type: string; label: string }> };
7575
expect(nodes.length).toBeGreaterThan(5);
7676

7777
const names = nodes.map((n) => n.displayName);

0 commit comments

Comments
 (0)