Skip to content

test(ui): stub the pin routes in the add-on e2e fixtures - #12882

Merged
mudler merged 1 commit into
masterfrom
fix/addons-e2e-pin-stubs
Oct 24, 2026
Merged

mudler merged 1 commit into
masterfrom
fix/addons-e2e-pin-stubs

Conversation

@mudler-agent

@mudler-agent mudler-agent commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

The UI E2E job fails on master since #12867 (the add-on owner 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, which is the intended behaviour. The add-on pages are gated on that flag, the navigation shell calls both routes, and the browser logs each failed request. Specs that draw add-on pages assert no console errors, so they fail.

This PR stubs those routes on the browser context in the shared add-on fixtures, the same way addon-navigation already does. The stubs switch the add-ons feature on (other flags keep the server's values) and answer the pin routes with an empty set. A spec's own page routes still take precedence. The server behaviour is unchanged.

Verification

  • All 367 specs in the 20 files that failed or touch add-on pages pass locally, with 4 workers and the coverage build.
  • addon-navigation "add-ons off" tests: left as they were. They fail on master's fixtures too, so they are not part of this change.

🤖 Generated with Claude Code

@mudler
mudler force-pushed the fix/addons-e2e-pin-stubs branch from 677acfa to 4875f90 Compare October 24, 2026 19:55
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>
@mudler
mudler force-pushed the fix/addons-e2e-pin-stubs branch from 4875f90 to a12555a Compare October 24, 2026 20:42
@mudler
mudler marked this pull request as ready for review October 24, 2026 20:45
@mudler
mudler merged commit b9b5434 into master Oct 24, 2026
21 of 23 checks passed
@mudler
mudler deleted the fix/addons-e2e-pin-stubs branch October 24, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants