From ab2d489ca8b02d05cd7ef0da6840da4fff5444ba Mon Sep 17 00:00:00 2001 From: eleven-lings Date: Mon, 12 Oct 2026 01:24:53 +0800 Subject: [PATCH] test(terminal): pin the bottom terminal by type, since ids are minted per open --- tests/terminal-tab.spec.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/terminal-tab.spec.tsx b/tests/terminal-tab.spec.tsx index e0428ee3..8c8e68c2 100644 --- a/tests/terminal-tab.spec.tsx +++ b/tests/terminal-tab.spec.tsx @@ -313,7 +313,11 @@ describe('terminal-bottom: carrier surface', () => { const state = store.getSnapshot().state! expect(state.bottomOpen).toBe(true) const tabs = state.bottomSplits.kind === 'leaf' ? state.bottomSplits.tabs : [] - expect(tabs.map(tab => tab.id)).toEqual(['terminal-bottom']) + // Multi-instance since the #774 follow-up: the id is minted per open, + // so pin the TYPE and that exactly one tab landed. + expect(tabs).toHaveLength(1) + expect(tabs[0]?.type).toBe('terminal-bottom') + expect(tabs[0]?.id.startsWith('terminal-bottom:')).toBe(true) }) })