Skip to content

Commit c623567

Browse files
committed
test(tui): update workflow progress assertions
1 parent b400af6 commit c623567

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

apps/pythinker-code/test/tui/pythinker-tui-message-flow.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ command = "vim"
17791779
);
17801780

17811781
transcript = stripSgr(renderTranscript(driver));
1782-
expect(transcript).toMatch(/001\s+0\s+\s+ WAIT\s+Fresh work/u);
1782+
expect(transcript).toMatch(/001\s+\s+WAIT\s+Fresh work/u);
17831783
expect(transcript).not.toContain('Late completion from undone work');
17841784
});
17851785

@@ -3943,9 +3943,9 @@ command = "vim"
39433943

39443944
const transcript = stripSgr(renderTranscript(driver));
39453945
expect(transcript).toContain('Dynamic Workflow');
3946-
// The running row spins a grey braille dot, so its symbol varies by frame.
3947-
expect(transcript).toMatch(/001\s+\d+\s+\d+s\s+[] RUN\s+src\/a.ts/u);
3948-
expect(transcript).toMatch(/002\s+\d+\s+\s+ DONE\s+src\/b.ts/u);
3946+
// The running row advances through the approved progress-glyph frames.
3947+
expect(transcript).toMatch(/001\s+[]\s+RUN\s+src\/a.ts/u);
3948+
expect(transcript).toMatch(/002\s+\s+DONE\s+src\/b.ts/u);
39493949
expect(transcript).toMatch(/Orchestrating\s+1\/2 complete/u);
39503950
expect(transcript).not.toContain('━');
39513951
expect(transcript).toContain('Completed before spawn');
@@ -4030,7 +4030,7 @@ command = "vim"
40304030

40314031
transcript = stripSgr(renderTranscript(driver));
40324032
expect(transcript).toContain('0/2 complete');
4033-
expect(transcript).toMatch(/001\s+0\s+\s+ WAIT\s+src\/a.ts/u);
4033+
expect(transcript).toMatch(/001\s+\s+WAIT\s+src\/a.ts/u);
40344034
});
40354035

40364036
it('keeps terminal Dynamic Workflow results static and does not fabricate child failures', async () => {
@@ -4057,8 +4057,8 @@ command = "vim"
40574057

40584058
const transcript = stripSgr(renderTranscript(driver));
40594059
expect(transcript).toContain('✓ Completed');
4060-
expect(transcript).toMatch(/001\s+\d+\s+\s+ DONE\s+src\/a.ts/u);
4061-
expect(transcript).toMatch(/002\s+\d+\s+\s+× FAIL\s+src\/b.ts/u);
4060+
expect(transcript).toMatch(/001\s+\s+DONE\s+src\/a.ts/u);
4061+
expect(transcript).toMatch(/002\s+×\s+FAIL\s+src\/b.ts/u);
40624062
expect(transcript).toContain('Agent timed out after 30s.');
40634063
expect(transcript).not.toContain('⠋ Orchestrating');
40644064
});
@@ -4099,7 +4099,7 @@ command = "vim"
40994099
} as Event);
41004100

41014101
const transcript = stripSgr(renderTranscript(driver));
4102-
expect(transcript).toMatch(/001\s+0\s+\s+ WAIT\s+src\/fresh.ts/u);
4102+
expect(transcript).toMatch(/001\s+\s+WAIT\s+src\/fresh.ts/u);
41034103
expect(transcript).not.toContain('must not leak');
41044104
},
41054105
);
@@ -4192,7 +4192,7 @@ command = "vim"
41924192
} as Event);
41934193

41944194
const transcript = stripSgr(renderTranscript(driver));
4195-
expect(transcript).toMatch(/001\s+\d+\s+\s+× FAIL\s+src\/generic.ts/u);
4195+
expect(transcript).toMatch(/001\s+×\s+FAIL\s+src\/generic.ts/u);
41964196
expect(transcript).toContain('Early generic failure');
41974197
});
41984198

@@ -4218,7 +4218,7 @@ command = "vim"
42184218

42194219
const transcript = stripSgr(renderTranscript(driver));
42204220
expect(transcript).toContain('× Failed');
4221-
expect(transcript).toMatch(/001\s+\d+\s+\s+ DONE\s+src\/a.ts/u);
4221+
expect(transcript).toMatch(/001\s+\s+DONE\s+src\/a.ts/u);
42224222
expect(transcript).toContain('Child completed before request error');
42234223
});
42244224

0 commit comments

Comments
 (0)