Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

test(ok): anchor the tab-independence check on the output shape (#4161)

Nick Gomez9672b47456a0
diff --git a/packages/desktop/tests/smoke/terminal-tabs.e2e.ts b/packages/desktop/tests/smoke/terminal-tabs.e2e.ts
index d3da9d51b..9082dbcf4 100644
--- a/packages/desktop/tests/smoke/terminal-tabs.e2e.ts
+++ b/packages/desktop/tests/smoke/terminal-tabs.e2e.ts
@@ -240,11 +240,9 @@ test.describe('Terminal tabs — live Electron', () => {
)
.toBe(true);
expect(pid2).not.toBe(pid1);
- await expect
- .poll(async () => (await readActiveText(page)).includes(`${marker1}=`), {
- timeout: 15_000,
- })
- .toBe(false);
+ expect(await readActiveText(page), 'tab 1 output reached tab 2').not.toMatch(
+ new RegExp(`${marker1}=\\d+`),
+ );
});
test('closing a tab reaps only that shell; the survivor stays interactive', async ({