diff options
| author | akbash <akbash@herdr.dev> | 2026-09-09 23:56:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 23:56:53 +0300 |
| commit | 120c682008a85dc17d7a13cc619a2fd5d25f3924 (patch) | |
| tree | 0119dfbe37bba91053f985ba60f3ee399d2ea797 /src/client/shell/tests/endpoints.rs | |
| parent | 985d3442b4b8a6f2e25a62821aab58d63d8ce2cf (diff) | |
fix: restore connected session navigator tree glyphs (#3861)
refs #3843
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/client/shell/tests/endpoints.rs')
| -rw-r--r-- | src/client/shell/tests/endpoints.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/shell/tests/endpoints.rs b/src/client/shell/tests/endpoints.rs index e425b794..0b69135e 100644 --- a/src/client/shell/tests/endpoints.rs +++ b/src/client/shell/tests/endpoints.rs @@ -1008,6 +1008,22 @@ fn navigator_uses_machine_parents_only_for_federated_clients() { })); assert_eq!(rows.iter().filter(|row| row.current).count(), 1); + let frame = state.compose(106, 30).expect("federated navigator"); + for (rect, target) in &state.hits.navigator_rows { + let expected = match target { + ClientNavigatorTarget::Machine { .. } => " ▾ ", + ClientNavigatorTarget::Workspace { .. } => " ▾ ", + ClientNavigatorTarget::Tab { .. } => " └── ", + ClientNavigatorTarget::Pane { .. } => " └── ", + }; + let prefix = frame.cells[rect.y as usize * frame.width as usize + rect.x as usize..] + .iter() + .take(expected.chars().count()) + .map(|cell| cell.symbol.as_str()) + .collect::<String>(); + assert_eq!(prefix, expected, "{target:?}"); + } + let mut local = ClientShellState::new(ClientShellConfig::from_config(&Config::default())); local.set_snapshot(Box::new(snapshot())); local.set_pane_surface(surface()); |
