From da4e80946d2f3fb48f205aae2a732252b2f51fca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E5=A5=87?=
<16399091+binaricat@users.noreply.github.com>
Date: Tue, 27 Oct 2026 03:34:32 +0000
Subject: [PATCH] test(plugins): align package details with default Allow
policy
---
.../tabs/PluginMarketplace.interaction.test.tsx | 4 +++-
components/settings/tabs/PluginPackageManager.test.tsx | 6 +++++-
docs/plugin-platform/permission-modes-acceptance.md | 10 ++++++++++
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/components/settings/tabs/PluginMarketplace.interaction.test.tsx b/components/settings/tabs/PluginMarketplace.interaction.test.tsx
index d6f38d467..2ed9e85dd 100644
--- a/components/settings/tabs/PluginMarketplace.interaction.test.tsx
+++ b/components/settings/tabs/PluginMarketplace.interaction.test.tsx
@@ -88,7 +88,9 @@ test('README failure leaves the permissions and source visible, before the failu
selected={entries[0].id} onSelect={() => {}} installed={[]} />);
assert.match(html, /Compatibility and permissions/);
assert.match(html, /settings.read/);
- assert.match(html, /not a grant/);
+ assert.match(html, /Declared supported capabilities default to Allow/);
+ assert.match(html, /Ask or Deny/);
+ assert.match(html, /Host validation and resource scope always apply/);
assert.match(html, /Source example/);
assert.ok(html.indexOf('settings.read') < html.indexOf('Network unavailable'));
assert.match(html, /Retry/);
diff --git a/components/settings/tabs/PluginPackageManager.test.tsx b/components/settings/tabs/PluginPackageManager.test.tsx
index ae552e148..7fb977d7f 100644
--- a/components/settings/tabs/PluginPackageManager.test.tsx
+++ b/components/settings/tabs/PluginPackageManager.test.tsx
@@ -19,9 +19,13 @@ test('package detail renders manifest resources as text and explains advanced au
} as NetcattyInstalledPlugin;
const html = renderToStaticMarkup();
assert.match(html, /full Node filesystem and network authority/);
+ assert.match(html, /Broker permissions cannot restrict this access/);
+ assert.match(html, /Development preview only/);
assert.match(html, /https:\/\/example.com/);
assert.match(html, /<script>/);
assert.doesNotMatch(html, /