ely-ui: the settings test sets menus first, as apps do; passes on Linux (L1.3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-11 02:33:07 -04:00
1 parent b2e13230b5
commit c2f16bc899
3 files changed
+7 -1

No files matched your search

+5
View File
@@ -41,6 +41,11 @@ fn each_app_shows_its_own_sections(cx: &mut TestAppContext) {
(AppId::Tree, &["general", "git", "storage", "diagnostics"]),
(AppId::Mark, &["general", "storage", "diagnostics"]),
] {
// As each app does before its first window.
cx.update(|cx| {
let menus = crate::commands::menus(app, &crate::commands::OPENING, false, Vec::new(), cx);
cx.set_menus(menus);
});
let window = cx.add_window(|window, cx| SettingsView::new(app, window, cx));
let shown = window
.update(cx, |view, _, cx| view.sections(cx).into_iter().map(|(key, ..)| key).collect::<Vec<_>>())