mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8846] [MERGED] fix(e2e): connection, picker and editor browser tests follow the current UI; fix the regressions they found #8842
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8842
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8846
Author: @SpicyMarinara
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/e2e-nightly-matrix📝 Commits (6)
676e485test(e2e): editor, picker, Mari, widget, avatar, drawer and sweep tests follow the current UI; fix the eager combat icon gallery fetch, the phone editor header wrap and the roleplay Personas picker surfaceb57fea6test(e2e): connection, model picker and provider tests follow the current UI; fix the empty switcher's Add account row and the remote model context gapcef9adatest(e2e): tighten the batch 1 fixes after review3f06db4Merge remote-tracking branch 'origin/staging' into fix/e2e-nightly-matrix0c3f238test(e2e): wait for the inherited Max Output Tokens before typing over it138faeetest(e2e): check the background preview's Clear selection by place, and the Roleplay picker's card paint as a layer📊 Changes
33 files changed (+542 additions, -226 deletions)
View changed files
📝
e2e/add-connection.e2e.ts(+13 -26)📝
e2e/avatar-placement.e2e.ts(+10 -11)📝
e2e/chat-position.e2e.ts(+3 -2)📝
e2e/chat-widget-style.e2e.ts(+3 -1)📝
e2e/claude-opus55.e2e.ts(+16 -9)📝
e2e/connection-access-home.e2e.ts(+15 -9)📝
e2e/connection-account-cleanup.e2e.ts(+3 -0)📝
e2e/connections-panel.ts(+30 -3)📝
e2e/drag-list-scroll.e2e.ts(+8 -1)📝
e2e/drawer-popout.e2e.ts(+20 -9)📝
e2e/editor-ui-polish.e2e.ts(+7 -4)📝
e2e/fal-image.e2e.ts(+71 -42)📝
e2e/game-widget-health-sync.e2e.ts(+8 -1)📝
e2e/generation-parameter-controls.e2e.ts(+33 -9)📝
e2e/gpt6-models.e2e.ts(+7 -7)📝
e2e/mari-arrival-append.e2e.ts(+3 -1)📝
e2e/mari-composer-stack.e2e.ts(+20 -4)📝
e2e/mari-connection-guidance.e2e.ts(+14 -5)📝
e2e/mari-window-height.e2e.ts(+2 -1)📝
e2e/play-as-character-folder.e2e.ts(+42 -15)...and 13 more files
📄 Description
Linked issue
Closes #8847. Part of #8843.
This is the first batch of the #8843 fix: about 50 of the roughly 220 failing tests, plus the five app regressions they found. #8843 stays open until a full matrix run passes; the remaining batches come as their own PRs.
Why this change
The nightly full Playwright matrix has failed on
stagingevery night since at least 2026-10-31, and on the v2.5.2 release candidate. Pushes to staging run only the smoke suite, so nobody noticed. The full matrix has to pass before staging can be promoted tomain.Most failures are tests that intended UI changes left behind:
Some are shared server state leaking from one spec into another in a shard.
Triage also found real app regressions, which this PR fixes in the app rather than in the tests:
What changed
App fixes:
ConnectionSwitcherBody: the Add account row has its own bordered footer and also shows when the list is empty.mergeConnectionModelOptionsfills a provider-listed model's missing context from the built-in model with the same id. Only context is filled: max output still comes only from what the provider reports, somaxTokensOverrideis unchanged.ConnectionModelPickeralways passes the built-in list for this, except forcustom, and still lists it only when the provider lists nothing and is not loading.ConnectionEditor: the facts line under the model picker shows Max output only when it is known, instead of "Max output: 0".GameModeIconSectionfetches the fight-token gallery only for a picture choice, or once Custom image is chosen.globals.css: in a dense phone editor header, actions in the actions row have a 2.25rem minimum width. The tap height stays 2.75rem, the Back button keeps its 44px, and the menu and all seven actions share one row again.CharacterSelectandQuickPersonaSwitcher: in Roleplay the Personas picker opens on the card surface again.Tests brought to the current UI:
The changes are new dialog titles and labels, the two-pane model picker instead of a
<select>, the inline model catalog, the account-first fal.ai setup, and the Personas window.Shared-state and flake fixes:
hideExistingItemshelper hides connections, accounts and folders left by earlier specs.generation-parameter-controlsisolates the synced UI settings, deletes only the accounts it created, and waits for the inherited Max Output Tokens before typing over it. On WebKit, typing while the field was still loading appended to it, which saved 409612000.fal-imagereads its account and Model ids from its own create call.sept22-assigned-sweepdeletes the account its Connection created.connection-account-cleanupholds the live access check, so Connect can't turn into "Continue anyway" mid-test.ux-feedback-sweep's slow-save check waits for the picker's refetch.schedule-generationdispatches a pointerdown before scrolling, as a touch would, so the editor stops holding its opening section in place.One assertion was removed:
fal-imageno longer expectsfal-ai/flux/schnellto be saved right after setup. The Add flow saves an empty model and the server falls back to schnell, so the test now picksfal-ai/flux/devexplicitly and checks that it is saved and still current after reload.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks on head
138faee25c(staging merged in at3f06db46fe):Every test fixed in batch 1, on each project it failed on, with
--retries=0against a private server pair: all pass. A few first tries hit load-induced timeouts at a load average above 30 and passed on a--workers=1rerun.After the staging merge (#8840 and #8845 change the switcher rows), I ran mari-connection-guidance, add-connection, chat-position, claude-opus55, schedule-generation and generation-parameter-controls on desktop-chromium and mobile-webkit.
--workers=1, which is what the CI shards use.With the app fixes reverted, mari-connection-guidance (no Add account row), claude-opus55 for claude_subscription (no 1M context) and the character media sections test (gallery fetched early) fail. With the fixes, they pass.
pnpm check: exit 0 on the batch 1 head before review.After review, Prettier on the changed files,
pnpm check:e2e-types, clienttsc --noEmit, ESLint on ConnectionEditor andpnpm localization:check: all pass. No user-facing copy was added.Independent review: 6 findings, all fixed in
cef9ada34b:CodeRabbit (local, on
0c3f238d66): 1 finding, fixed in138faee25c. Two Clear selection checks had been loosened to visibility only. Since #8719 the button is a small round button over the preview, so the old class match can't hold. Both checks now assert that it sits in the preview's top right corner.The same commit updates the Roleplay picker check for #8842, which staging brought in. The chat's model menu now lays the card paint over the opaque page background, so the check accepts the card paint as the color or as a layer. Both background-picker tests pass on desktop-chromium, mobile-chromium and mobile-webkit.
Known limits:
addedModelscounts every new row on the server, so the spec can't run alongside other specs on one server. CI runs each project with--workers=1.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.