diff --git a/crates/text/tests/it/editor.rs b/crates/text/tests/it/editor.rs index 698376b281..85b7e945d7 100644 --- a/crates/text/tests/it/editor.rs +++ b/crates/text/tests/it/editor.rs @@ -661,11 +661,12 @@ fn field_modes_end_on_enter_tab_and_shift_tab_but_not_while_composing() { } /// The canvas editor keeps Shift+Tab only for a host with its own Tab: on any other host Shift+Tab moves the focus out -/// of the editor and types nothing. +/// of the editor and types nothing. A second editor beside it gives the focus somewhere to go: Tab order wraps, so the +/// only stop in a window would take the focus back. #[trial] fn shift_tab_leaves_a_canvas_editor_whose_host_has_no_tab_keys() { use craft_ui::testing::access::{focused_key, name}; - let mut editor = session_on(Host { text: "abc".to_owned(), ..Host::default() }, None, false, EditorMode::Canvas, false); + let mut editor = session_on(Host { text: "abc".to_owned(), ..Host::default() }, None, true, EditorMode::Canvas, false); editor.focus(); let focused = |editor: &Session| name(editor.fixture.tree(), focused_key(editor.fixture.tree())).map(str::to_owned); assert_eq!(focused(&editor).as_deref(), Some("Text"), "the editor has the focus");