mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 10:39:32 +01:00
fix(story-mode): a remark about committing stays on its save
"Commits are in." landed on the check panel after the save it reports on; the rule that keeps a result remark on its check now covers saves too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
a2db03cda5
commit
ea104c8965
2 files changed
+21
-3
No files matched your search
@@ -726,6 +726,18 @@ describe('buildStoryPage', () => {
|
||||
expect(turns[1].durationMs).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it('a remark about committing stays on the save it reports on', () => {
|
||||
const page = pageOf([
|
||||
prompt('commit then test'),
|
||||
...bash('b1', 'git commit -qm a', 'Commit', 'ok'),
|
||||
said('Commits are in.'),
|
||||
...bash('b2', 'pytest -q', 'Run tests', '3 passed in 0.1s'),
|
||||
end(1000),
|
||||
]);
|
||||
expect(page.panels.find((p) => p.kind === 'save')!.balloon?.text).toBe('Commits are in.');
|
||||
expect(page.panels.find((p) => p.kind === 'check')!.balloon).toBeUndefined();
|
||||
});
|
||||
|
||||
it('a result remark replaces a step announcement on its check', () => {
|
||||
const page = pageOf([
|
||||
prompt('steps'),
|
||||
|
||||
Reference in new issue
Block a user