craft-esign clear the texture delta the sign-in message test's frame leaves

run_ui's FullOutput carries textures_delta. egui panics on drop when a test
never applies or clears it.
This commit is contained in:
William Dunn committed 2026-11-17 21:03:40 -05:00
1 parent b0b5c2bf17
commit 820aa7b32c
1 file changed
+2 -1
+2 -1
View File
@@ -843,7 +843,8 @@ mod tests {
..Default::default()
};
let ctx = Context::default();
let full = ctx.run_ui(egui::RawInput::default(), |ui| dialog.ui(ui));
let mut full = ctx.run_ui(egui::RawInput::default(), |ui| dialog.ui(ui));
full.textures_delta.clear();
let shown = texts(&full.shapes);
assert!(shown.iter().any(|t| t == &dialog.labels.sign_in_first), "sign-in message not shown for an unlinked account: {shown:?}");
}