mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-10 20:41:55 +00:00
TOC toggle test: the app's fonts installed first, as main's dialog tests do
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
788061a9ae
commit
991f51479f
1 file changed
+12
-1
@@ -3568,7 +3568,18 @@ fn enter_on_the_toc_options_toggle_only_toggles() {
|
||||
app.run("file.newSample", json!({})).unwrap();
|
||||
open_toc(&mut app);
|
||||
let revision = app.session.doc().unwrap().revision;
|
||||
let mut h = Harness::builder().with_size(egui::vec2(1440.0, 900.0)).build_ui_state(|ui, app: &mut DesignApp| show(app, ui.ctx()), app);
|
||||
let mut h = Harness::builder().with_size(egui::vec2(1440.0, 900.0)).build_ui_state(
|
||||
|ui, app: &mut DesignApp| {
|
||||
let key = egui::Id::unique("toc_toggle_test_fonts");
|
||||
if ui.data(|d| d.get_temp::<bool>(key)).is_none() {
|
||||
crate::theme::install_fonts(ui.ctx(), "");
|
||||
ui.data_mut(|d| d.insert_temp(key, true));
|
||||
return;
|
||||
}
|
||||
show(app, ui.ctx());
|
||||
},
|
||||
app,
|
||||
);
|
||||
h.run_steps(3);
|
||||
h.get_by_label("Fewer Options").focus();
|
||||
h.run_steps(2);
|
||||
|
||||
Reference in new issue
Block a user