Files
paseo/packages/app/e2e/browser/plugin-requirements.spec.ts
Mohamed Boudra a5d2b7d863 Declare and enforce plugin Paseo version requirements (#4430)
* feat(plugins): enforce declared Paseo version requirements

Treat manifests without a Paseo requirement as pre-0.8 plugins so the first breaking plugin release offers an explicit migration path. Check the daemon and app independently before plugin execution, and preserve installed Git revisions when updates are incompatible.

* fix(nix): refresh dependency hash for plugin requirements

* refactor(plugins): validate test manifest inputs and name compatibility input
2026-09-07 17:20:19 +02:00

19 lines
594 B
TypeScript

import {
test,
openRequirementHost,
expectAppMismatch,
correctRequirementAndReload,
rejectDaemonMismatch,
} from "../support/helpers/plugin-requirements";
test("shows which runtime is incompatible and recovers after the requirement is corrected", async ({
page,
requirementHost,
}) => {
await openRequirementHost(page, requirementHost);
await expectAppMismatch(page);
await correctRequirementAndReload(page, requirementHost.directory);
await rejectDaemonMismatch(page, requirementHost.directory);
await correctRequirementAndReload(page, requirementHost.directory);
});