diff options
| author | akbash <akbash@herdr.dev> | 2026-09-09 02:35:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 02:35:31 +0300 |
| commit | b9ce96869e89937278d673d70ae4c135dd318469 (patch) | |
| tree | fea7e39dad42f8cad1f1846af6babda546c1fa78 /src/client/shell/tests/mobile.rs | |
| parent | 8be4cf765afddfd9cf3206602ba4dab682a29fa1 (diff) | |
feat: navigate and highlight workspaces across machines (#3755)
* fix: highlight workspace navigation with saved machines
refs #3754
* feat: navigate workspaces across connected machines
refs #3754
* feat: navigate workspaces across machines
refs #3754
---------
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/client/shell/tests/mobile.rs')
| -rw-r--r-- | src/client/shell/tests/mobile.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/shell/tests/mobile.rs b/src/client/shell/tests/mobile.rs index b7cc2a47..0c6f1908 100644 --- a/src/client/shell/tests/mobile.rs +++ b/src/client/shell/tests/mobile.rs @@ -363,7 +363,7 @@ fn mobile_background_workspace_uses_its_own_active_tab_status() { state.set_snapshot(Box::new(projected)); state.set_pane_surface(surface()); state.mode = ClientShellMode::Navigate; - state.navigate_workspace_id = Some("ws_2".into()); + state.navigate_workspace_id = state.navigation_target(&ClientEndpointId::Local, "ws_2"); let frame = state.compose(44, 20).expect("mobile switcher"); let text = frame .cells @@ -615,7 +615,10 @@ fn mobile_switcher_scroll_close_and_width_transition_clear_mobile_hits() { ))]); } state.compose(44, 10).expect("revealed mobile selection"); - assert_eq!(state.navigate_workspace_id.as_deref(), Some("ws_8")); + assert_eq!( + state.navigate_workspace_id, + state.navigation_target(&ClientEndpointId::Local, "ws_8") + ); assert!(state.mobile_switcher_scroll > 2); assert!(state.hits.mobile_targets.iter().any(|(_, target)| { matches!( |
