实时切换测试覆盖主机树搜索框的提示

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
XuzandClaude Opus 5.5 committed 2026-10-07 22:09:27 +08:00
1 parent acd0e238d4
commit 575ca42258
1 file changed
+6
+6
View File
@@ -681,6 +681,8 @@ fn the_interface_language_changes_the_window_at_once(cx: &mut TestAppContext) {
assert_eq!(window.find("settings-tab").label(), Some("设置"));
assert_eq!(window.find("show-hosts").label(), Some("主机"));
assert_eq!(appearance_dropdown(window, 1).as_deref(), Some("跟随系统"));
// Set once when the list was made, and kept by the input.
assert_eq!(window.find("host-search").label(), Some("搜索主机或分组"));
})
.unwrap();
@@ -699,6 +701,10 @@ fn the_interface_language_changes_the_window_at_once(cx: &mut TestAppContext) {
assert_eq!(window.find("show-hosts").label(), Some("Hosts"));
assert_eq!(appearance_dropdown(window, 0).as_deref(), Some("English"));
assert_eq!(appearance_dropdown(window, 1).as_deref(), Some("System"));
assert_eq!(
window.find("host-search").label(),
Some("Search hosts or groups")
);
})
.unwrap();