Plug-ins: the clear-cache test installs with request grants allowed

plugin.install refuses grant from a request unless the session was started
to allow it, so the test from main that installs with grant turns that on.
The install dialog's comment names OK's Sense::click.
This commit is contained in:
dotCooCoo
2026-11-08 19:26:55 -08:00
parent 4941b377f9
commit fe7b71b857
2 changed files with 3 additions and 2 deletions
@@ -40,6 +40,7 @@ fn clearing_every_cache_empties_each_plugins_cache_and_keeps_its_settings() {
std::fs::create_dir_all(&folder).unwrap();
let ids = ["test.clearcache.a", "test.clearcache.b"];
let mut s = Session::new();
s.allow_plugin_grants_from_requests();
s.execute("file.new", &json!({"width": 400, "height": 200})).unwrap();
s.attach_plugin_store(folder.clone());
for id in ids {
+2 -2
View File
@@ -331,8 +331,8 @@ pub(crate) struct PendingInstall {
pub approval: InstallApproval,
}
/// No OK in the shared footer: the OK in its body is a button, which Enter clicks only when it has
/// the keyboard focus.
/// No OK in the shared footer: the OK in its body is a `Sense::click` button, which Enter clicks
/// only when it has the keyboard focus.
pub(super) const INSTALL_SPEC: DialogSpec = DialogSpec {
heading: |_| tl!("Install Plug-in…").trim_end_matches('…').to_string(),
body_with_actions: Some(install_body),