From 1c4d3e2f4fcbaf7fc266693ae845df8a5d8c247d Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 2 May 2026 16:35:11 -0700 Subject: [PATCH] test(e2e): accept bundled configured plugins --- scripts/e2e/lib/upgrade-survivor/assertions.mjs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/e2e/lib/upgrade-survivor/assertions.mjs b/scripts/e2e/lib/upgrade-survivor/assertions.mjs index 253d5995549..fcb0a41539e 100644 --- a/scripts/e2e/lib/upgrade-survivor/assertions.mjs +++ b/scripts/e2e/lib/upgrade-survivor/assertions.mjs @@ -388,7 +388,17 @@ function assertConfiguredPluginInstalls() { const index = readInstalledPluginIndex(); const records = index.installRecords ?? {}; const matrix = records.matrix; - assert(matrix, "configured external matrix plugin install record missing"); + const bundledMatrix = (index.plugins ?? []).find((plugin) => plugin?.pluginId === "matrix"); + if (!matrix) { + assert( + bundledMatrix, + "configured matrix plugin is neither present in the plugin index nor installed externally", + ); + assert(bundledMatrix.enabled !== false, "configured bundled matrix plugin is disabled"); + assert(!records.discord, "internal discord plugin should not be installed externally"); + assert(!records.telegram, "internal telegram plugin should not be installed externally"); + return; + } assert( matrix.source === "clawhub" || matrix.source === "npm", `configured external matrix plugin installed from unexpected source: ${matrix.source}`,