Synchronize file path test background checks
This commit is contained in:
1 parent
522b3381ef
commit
6dc10e1aa5
1 file changed
+3
@@ -73,6 +73,7 @@ fn file_path_edit_navigates_and_keeps_the_last_directory_on_error_or_escape(
|
||||
cx.simulate_keystrokes("ctrl-a");
|
||||
cx.simulate_input("中文 folder");
|
||||
cx.simulate_keystrokes("enter");
|
||||
cx.background_executor.run_until_parked();
|
||||
cx.run_until_parked();
|
||||
workspace.read_with(&cx, |view, _| {
|
||||
assert!(view.file_tree_path.is_none());
|
||||
@@ -92,6 +93,7 @@ fn file_path_edit_navigates_and_keeps_the_last_directory_on_error_or_escape(
|
||||
cx.update(|window, cx| window.draw(cx).clear(cx));
|
||||
assert!(cx.debug_bounds("file-tree-path-editor").is_some());
|
||||
cx.simulate_keystrokes("enter");
|
||||
cx.background_executor.run_until_parked();
|
||||
cx.run_until_parked();
|
||||
workspace.read_with(&cx, |view, _| {
|
||||
assert!(
|
||||
@@ -106,6 +108,7 @@ fn file_path_edit_navigates_and_keeps_the_last_directory_on_error_or_escape(
|
||||
cx.simulate_keystrokes("ctrl-a");
|
||||
cx.simulate_input("missing-directory");
|
||||
cx.simulate_keystrokes("enter");
|
||||
cx.background_executor.run_until_parked();
|
||||
cx.run_until_parked();
|
||||
workspace.read_with(&cx, |view, _| {
|
||||
assert!(view.file_tree_path_error().is_some());
|
||||
|
||||
Reference in new issue
Block a user