From a3664e711737f4f16a366576bd4861610e280fc8 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 26 Oct 2026 01:06:14 +0100 Subject: [PATCH] fix(plugins): lower the unused-key entry the moved components reach again, and test the marked install --- client/scripts/i18n-unused-baseline.json | 2 +- client/src/components/Admin/AdminPluginsPanel.test.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/scripts/i18n-unused-baseline.json b/client/scripts/i18n-unused-baseline.json index 218e126e8..7c9e4560a 100644 --- a/client/scripts/i18n-unused-baseline.json +++ b/client/scripts/i18n-unused-baseline.json @@ -1,5 +1,5 @@ { - "admin.ts": 126, + "admin.ts": 112, "atlas.ts": 9, "backup.ts": 10, "budget.ts": 36, diff --git a/client/src/components/Admin/AdminPluginsPanel.test.tsx b/client/src/components/Admin/AdminPluginsPanel.test.tsx index 0fc27b390..d8e9848d3 100644 --- a/client/src/components/Admin/AdminPluginsPanel.test.tsx +++ b/client/src/components/Admin/AdminPluginsPanel.test.tsx @@ -489,10 +489,10 @@ describe('AdminPluginsPanel — TREK-version compatibility', () => { fireEvent.click(await screen.findByText('Discover')) } - it('blocks Install when no published version runs on this TREK, and says why', async () => { + it('marks a plugin no published version runs on, and still lets the admin install it', async () => { await openDiscover({ trek: '>=4.0.0', hostVersion: '3.3.0', compatible: false, latestCompatible: null }) - const btn = await screen.findByRole('button', { name: /^incompatible$/i }) - expect(btn).toBeDisabled() + expect(await screen.findByText('Not confirmed for TREK 3.3.0 yet')).toBeInTheDocument() + expect(screen.getByRole('button', { name: /^install$/i })).toBeEnabled() }) it('offers the newest version that DOES run here rather than a dead button', async () => {