Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions crates/embers-cli/tests/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,11 @@ async fn embers_without_subcommand_starts_server_and_client() {
.read_until_contains("[main]", STARTUP_TIMEOUT)
.expect("client starts and renders");

let output = run_pane_command(&mut harness, "embers list-sessions", "1\tmain");
// The pane renders tab cells as spaces (styled-snapshot projection), so the
// tab-separated `1\tmain` shows with the tab expanded to the next tab stop.
let output = run_pane_command(&mut harness, "embers list-sessions", "1 main");
assert!(
output.contains("1\tmain"),
output.contains("1 main"),
"expected list-sessions output in pane:\n{output}"
);

Expand Down Expand Up @@ -700,9 +702,10 @@ async fn attach_subcommand_connects_to_running_server() {
.read_until_contains("[main]", STARTUP_TIMEOUT)
.expect("attach client renders");

let output = run_pane_command(&mut harness, "embers list-sessions", "1\tmain");
// The pane renders tab cells as spaces (styled-snapshot projection).
let output = run_pane_command(&mut harness, "embers list-sessions", "1 main");
assert!(
output.contains("1\tmain"),
output.contains("1 main"),
"expected list-sessions output in attached pane:\n{output}"
);

Expand Down Expand Up @@ -1372,7 +1375,7 @@ async fn fullscreen_terminal_transitions_render_in_the_live_client_pty() {
&& snapshot
.lines
.iter()
.any(|line| line.contains("PTY-FULLSCREEN"))
.any(|line| line.text.contains("PTY-FULLSCREEN"))
})
.await;
assert!(live.alternate_screen);
Expand All @@ -1385,7 +1388,7 @@ async fn fullscreen_terminal_transitions_render_in_the_live_client_pty() {
&& snapshot
.lines
.iter()
.any(|line| line.contains("PTY-RESTORED"))
.any(|line| line.text.contains("PTY-RESTORED"))
})
.await;
assert!(!restored.alternate_screen);
Expand Down
Loading
Loading