test(cabana): Plugins screen endpoints

- TestPluginsEndpoints: 401/403/200 for both endpoints, the update rule
  table, cache hit and expiry on an injected clock, failure caching, at
  most 4 version lookups at once, call timeout, marketplace validation,
  markers, https-only icons, disabled registry making no call
- fix: marketplace categories come only from plugins the screen offers,
  not from registry entries dropped for an invalid ID
- check-phase34.sh: TestPluginsEndpoints and useSettings.test.ts required
This commit is contained in:
Jakub Zych
2026-10-29 21:27:55 +01:00
parent a231309721
commit df2ba57e7b
3 changed files with 480 additions and 2 deletions

View File

@@ -100,6 +100,7 @@ GO_TESTS=(
./internal/build:TestPluginDirs ./internal/build:TestEffectiveFramework ./internal/build:TestResolveInstall
./internal/build:TestAskToProceed ./internal/build:TestAppendManifestPlugins
./cmd/summer:TestPluginCommands
./modules/cabana:TestPluginsEndpoints
)
# docker stage: the non-short framework tests (file:// proxies, git
@@ -113,7 +114,7 @@ SITE_SHORT_TESTS=(.:TestPluginIdentity .:TestRoutesAssemble)
SITE_DOCKER_TESTS=(.:TestRegistrySmoke)
# admin stage: vitest files that must pass.
ADMIN_FILES=(tests/views/PluginsView.test.ts)
ADMIN_FILES=(tests/views/PluginsView.test.ts tests/state/useSettings.test.ts)
# marker stage: names of consuming applications (split so this file does
# not match itself). summercms.io, the framework's own site and default