summaryrefslogtreecommitdiffstats
path: root/src/interactive/app/tests/journeys_with_writes.rs
diff options
context:
space:
mode:
authorPiotr Wach <pwach@bloomberg.net>2023-12-11 21:35:12 +0000
committerPiotr Wach <pwach@bloomberg.net>2023-12-19 21:13:17 +0000
commitdf6a02cd8fdbe693f507ab34a89227431d7c112e (patch)
treee3e64cc1653b50940d28405012fdfee984b43538 /src/interactive/app/tests/journeys_with_writes.rs
parentb23e13431dad1ed9efc6728f4c9ee8ab2254a42c (diff)
Implements glob search mode
Diffstat (limited to 'src/interactive/app/tests/journeys_with_writes.rs')
-rw-r--r--src/interactive/app/tests/journeys_with_writes.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/interactive/app/tests/journeys_with_writes.rs b/src/interactive/app/tests/journeys_with_writes.rs
index 4e990ee..d14f8b4 100644
--- a/src/interactive/app/tests/journeys_with_writes.rs
+++ b/src/interactive/app/tests/journeys_with_writes.rs
@@ -32,9 +32,14 @@ fn basic_user_journey_with_deletion() -> Result<()> {
app.window.mark_pane.is_none(),
"the marker pane is gone as all entries have been removed"
);
- assert_eq!(app.state.selected, None, "nothing is left to be selected");
assert_eq!(
- app.state.root, app.traversal.root_index,
+ app.state.navigation().selected,
+ None,
+ "nothing is left to be selected"
+ );
+ assert_eq!(
+ app.state.navigation().view_root,
+ app.traversal.root_index,
"the only root left is the top-level"
);
assert!(