diff --git a/scripts/e2e/lib/upgrade-survivor/assertions.mjs b/scripts/e2e/lib/upgrade-survivor/assertions.mjs index 792bb92cbc6..e25e2dbb7e7 100644 --- a/scripts/e2e/lib/upgrade-survivor/assertions.mjs +++ b/scripts/e2e/lib/upgrade-survivor/assertions.mjs @@ -427,17 +427,9 @@ function assertConfiguredPluginInstalls() { const records = index.installRecords ?? {}; const matrix = records.matrix; 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"); - assertExternalPluginInstall(records, "discord", "@openclaw/discord"); - assert(!records.telegram, "internal telegram plugin should not be installed externally"); - return; - } - assertExternalPluginInstall(records, "matrix", "@openclaw/matrix"); + assert(!matrix, "internal matrix plugin should not be installed externally"); + assert(bundledMatrix, "configured bundled matrix plugin is missing from the plugin index"); + assert(bundledMatrix.enabled !== false, "configured bundled matrix plugin is disabled"); assertExternalPluginInstall(records, "discord", "@openclaw/discord"); assert(!records.telegram, "internal telegram plugin should not be installed externally"); }