fix(plugins): trust official signing keys for offline installation

This commit is contained in:
t8y2 committed 2026-09-17 18:03:47 +08:00
1 parent 65b820e6a9
commit fb25a66d7a
5 files changed
+146 -9

No files matched your search

@@ -26,6 +26,16 @@ describe("plugin center integration", () => {
expect(driverStoreSource).not.toContain("PluginContributionsPanel");
});
it("formats structured backend errors for local and URL package installs", () => {
const localInstall = pluginCenterSource.slice(pluginCenterSource.indexOf("async function installPlugin("), pluginCenterSource.indexOf("function isHttpPackageUrl("));
const urlInstall = pluginCenterSource.slice(pluginCenterSource.indexOf("async function installPluginFromUrl("), pluginCenterSource.indexOf("const urlProgressPercent"));
for (const installSource of [localInstall, urlInstall]) {
expect(installSource).toContain("toast(translateBackendError(t, cause), 8000)");
expect(installSource).not.toContain("String(cause)");
}
});
it("creates and edits plugin connections in the unified connection dialog", () => {
expect(appDialogsSource).toContain(':edit-config="editConfig"');
expect(appDialogsSource).toContain(':plugin-provider="connectionPluginProvider"');