mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
test(ui): stub the add-on routes in the add-on e2e fixtures The add-on owner now runs as its own workload. With no owner running the server reports the add-ons feature off and answers 5xx on /api/addons/builtin and /api/addons/pins. The add-on pages are gated on that flag, and the navigation shell calls both routes, which the browser logs as failed requests. Specs that draw add-on pages assert no console errors, so they failed on master. Stub those routes on the browser context: the feature flag is switched on with the server's other flags kept, and the pin routes answer with an empty set. A spec's own page routes still take precedence. Studio's old-address and 404 specs call the same stub, since they expect add-ons to be on. The server behaviour is unchanged. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>