Skip to content

Commit 3b444b4

Browse files
cursoragentechobt
andcommitted
test(tui): match empty-session snapshot to welcome copy
The home harness still required the substring Cortex CLI, which the two-line splash no longer contains. Co-authored-by: Mathis <echobt@users.noreply.github.com>
1 parent 3450a9b commit 3b444b4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/cortex-tui/src/views/minimal_session

src/cortex-tui/src/views/minimal_session/tests.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ mod harness_snapshots {
4545
dump_snapshot("home", &text);
4646
assert!(!text.to_lowercase().contains("grok"));
4747
assert!(
48-
text.contains("Cortex CLI"),
48+
text.contains("Welcome to") && text.contains("the coding agent CLI"),
4949
"home session should render splash: {text}"
5050
);
51+
assert!(
52+
text.contains("/ commands"),
53+
"home session should render keystroke hints: {text}"
54+
);
5155
assert!(
5256
!text.contains("Directory") && !text.contains("Computer"),
5357
"home session must not show header cards: {text}"

0 commit comments

Comments
 (0)