[PR #8846] [MERGED] fix(e2e): connection, picker and editor browser tests follow the current UI; fix the regressions they found #8842

Closed
opened 2026-11-07 17:40:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 676e485 test(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 surface
  • b57fea6 test(e2e): connection, model picker and provider tests follow the current UI; fix the empty switcher's Add account row and the remote model context gap
  • cef9ada test(e2e): tighten the batch 1 fixes after review
  • 3f06db4 Merge remote-tracking branch 'origin/staging' into fix/e2e-nightly-matrix
  • 0c3f238 test(e2e): wait for the inherited Max Output Tokens before typing over it
  • 138faee test(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

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

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 staging every 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 to main.

Most failures are tests that intended UI changes left behind:

  • the account-first Connections and Add account window (#8456);
  • the shared Personas and character picker (#8763);
  • the floating access banner (#8093);
  • presets without token limits (#7940).

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:

  • An empty connection switcher lost its Add account row in #8677, so an empty picker in Mari, the chat model chip or a job picker offered no way to add one.
  • Picking a model whose provider list gives no context size (Claude (Subscription), for example) kept 128K instead of the model's known limit. Claude Opus 5.5 on a subscription saved 128K instead of 1M.
  • The editor's Stats section fetched the character and persona gallery as soon as it mounted, which defeated the lazy Gallery section (#8362).
  • On phones, the dense editor header wrapped its actions onto a second row after #8456's larger tap targets.
  • In Roleplay, the Personas picker no longer opened on the card surface like the model picker beside it (lost in #8763).

What changed

App fixes:

  • ConnectionSwitcherBody: the Add account row has its own bordered footer and also shows when the list is empty.
  • mergeConnectionModelOptions fills 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, so maxTokensOverride is unchanged. ConnectionModelPicker always passes the built-in list for this, except for custom, 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".
  • GameModeIconSection fetches 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.
  • CharacterSelect and QuickPersonaSwitcher: in Roleplay the Personas picker opens on the card surface again.

Tests brought to the current UI:

  • add-connection, connection-access-home, connection-account-cleanup, drag-list-scroll, runpod-defaults, gpt6-models, claude-opus55, fal-image, mari-connection-guidance, chat-position, schedule-generation, generation-parameter-controls, scene-tts-preferences;
  • editor-ui-polish, chat-widget-style, drawer-popout, play-as-character-folder, avatar-placement, game-widget-health-sync, mari-composer-stack, mari-arrival-append, mari-window-height, ux-feedback-sweep, sept22-assigned-sweep.

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:

  • A shared hideExistingItems helper hides connections, accounts and folders left by earlier specs.
  • generation-parameter-controls isolates 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-image reads its account and Model ids from its own create call.
  • sept22-assigned-sweep deletes the account its Connection created.
  • connection-account-cleanup holds the live access check, so Connect can't turn into "Continue anyway" mid-test.
  • The phone run of the drag-list connection test uses an 844px-tall viewport, so the drop target stays on screen.
  • ux-feedback-sweep's slow-save check waits for the picker's refetch.
  • schedule-generation dispatches a pointerdown before scrolling, as a touch would, so the editor stops holding its opening section in place.

One assertion was removed: fal-image no longer expects fal-ai/flux/schnell to be saved right after setup. The Add flow saves an empty model and the server falls back to schnell, so the test now picks fal-ai/flux/dev explicitly and checks that it is saved and still current after reload.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify in the browser that a model picker with no accounts (Mari's picker, the chat's model chip, a job picker such as Schedule) shows Add account and that it opens the Add window.
  • Manually verify that picking Claude Opus 5.5 on a Claude (Subscription) account shows 1M context in the picker row and in the Model editor, and that the editor no longer shows "Max output: 0" for it.
  • Manually verify on a 390px-wide phone that a character editor's header keeps the menu and all seven actions on one row, and that the Back button is still easy to tap.
  • Manually verify in Roleplay that the Personas picker opens on the card surface, like the model picker beside it.
  • Manually verify that opening a character editor doesn't load the gallery until the Gallery section opens, or until Custom image is chosen for the fight token.

Agent-run checks on head 138faee25c (staging merged in at 3f06db46fe):

  • Every test fixed in batch 1, on each project it failed on, with --retries=0 against 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=1 rerun.

  • 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.

    • With two workers sharing one server, five runs failed. Four were runs interfering with each other: add-connection counts every new row on the server, and generation-parameter-controls was creating rows at the same time. They passed with --workers=1, which is what the CI shards use.
    • The fifth was the WebKit Max Output Tokens race fixed above. That test then passed 9 of 9 (three projects, three repeats each).
  • 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, client tsc --noEmit, ESLint on ConnectionEditor and pnpm localization:check: all pass. No user-facing copy was added.

  • Independent review: 6 findings, all fixed in cef9ada34b:

    • a race check that could no longer fail;
    • a negative check naming a button that doesn't exist;
    • "Max output: 0" in the Model editor;
    • the narrower header width also reaching the Back button;
    • two shared-server cleanup gaps.
  • CodeRabbit (local, on 0c3f238d66): 1 finding, fixed in 138faee25c. 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:

  • add-connection's addedModels counts 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

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8846 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/4/2026 **Status:** ✅ Merged **Merged:** 11/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/e2e-nightly-matrix` --- ### 📝 Commits (6) - [`676e485`](https://github.com/Pasta-Devs/Marinara-Engine/commit/676e4859fd89261974254e3d83ceb73140b8369f) test(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 surface - [`b57fea6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b57fea624dcd48b821584d464cd3b21504d70186) test(e2e): connection, model picker and provider tests follow the current UI; fix the empty switcher's Add account row and the remote model context gap - [`cef9ada`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cef9ada34b3622d42a5bf98940621620c63d67c1) test(e2e): tighten the batch 1 fixes after review - [`3f06db4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3f06db46fe0d92d1ae9e527f1f805f17c0cc5a5f) Merge remote-tracking branch 'origin/staging' into fix/e2e-nightly-matrix - [`0c3f238`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c3f238d66f7cd2f9ffc8fa3c65aa3d3ceb1391d) test(e2e): wait for the inherited Max Output Tokens before typing over it - [`138faee`](https://github.com/Pasta-Devs/Marinara-Engine/commit/138faee25cb7011a2436bc994a3d68aabd7d4157) test(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) <details> <summary>View changed files</summary> 📝 `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_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## 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 `staging` every 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 to `main`. Most failures are tests that intended UI changes left behind: - the account-first Connections and Add account window (#8456); - the shared Personas and character picker (#8763); - the floating access banner (#8093); - presets without token limits (#7940). 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: - An empty connection switcher lost its **Add account** row in #8677, so an empty picker in Mari, the chat model chip or a job picker offered no way to add one. - Picking a model whose provider list gives no context size (Claude (Subscription), for example) kept 128K instead of the model's known limit. Claude Opus 5.5 on a subscription saved 128K instead of 1M. - The editor's Stats section fetched the character and persona gallery as soon as it mounted, which defeated the lazy Gallery section (#8362). - On phones, the dense editor header wrapped its actions onto a second row after #8456's larger tap targets. - In Roleplay, the Personas picker no longer opened on the card surface like the model picker beside it (lost in #8763). ## What changed App fixes: - `ConnectionSwitcherBody`: the Add account row has its own bordered footer and also shows when the list is empty. - `mergeConnectionModelOptions` fills 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, so `maxTokensOverride` is unchanged. `ConnectionModelPicker` always passes the built-in list for this, except for `custom`, 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". - `GameModeIconSection` fetches 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. - `CharacterSelect` and `QuickPersonaSwitcher`: in Roleplay the Personas picker opens on the card surface again. Tests brought to the current UI: - add-connection, connection-access-home, connection-account-cleanup, drag-list-scroll, runpod-defaults, gpt6-models, claude-opus55, fal-image, mari-connection-guidance, chat-position, schedule-generation, generation-parameter-controls, scene-tts-preferences; - editor-ui-polish, chat-widget-style, drawer-popout, play-as-character-folder, avatar-placement, game-widget-health-sync, mari-composer-stack, mari-arrival-append, mari-window-height, ux-feedback-sweep, sept22-assigned-sweep. 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: - A shared `hideExistingItems` helper hides connections, accounts and folders left by earlier specs. - `generation-parameter-controls` isolates 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-image` reads its account and Model ids from its own create call. - `sept22-assigned-sweep` deletes the account its Connection created. - `connection-account-cleanup` holds the live access check, so Connect can't turn into "Continue anyway" mid-test. - The phone run of the drag-list connection test uses an 844px-tall viewport, so the drop target stays on screen. - `ux-feedback-sweep`'s slow-save check waits for the picker's refetch. - `schedule-generation` dispatches a pointerdown before scrolling, as a touch would, so the editor stops holding its opening section in place. One assertion was removed: `fal-image` no longer expects `fal-ai/flux/schnell` to be saved right after setup. The Add flow saves an empty model and the server falls back to schnell, so the test now picks `fal-ai/flux/dev` explicitly and checks that it is saved and still current after reload. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify in the browser that a model picker with no accounts (Mari's picker, the chat's model chip, a job picker such as Schedule) shows **Add account** and that it opens the Add window. - Manually verify that picking Claude Opus 5.5 on a Claude (Subscription) account shows 1M context in the picker row and in the Model editor, and that the editor no longer shows "Max output: 0" for it. - Manually verify on a 390px-wide phone that a character editor's header keeps the menu and all seven actions on one row, and that the Back button is still easy to tap. - Manually verify in Roleplay that the Personas picker opens on the card surface, like the model picker beside it. - Manually verify that opening a character editor doesn't load the gallery until the Gallery section opens, or until Custom image is chosen for the fight token. Agent-run checks on head `138faee25c` (staging merged in at `3f06db46fe`): - Every test fixed in batch 1, on each project it failed on, with `--retries=0` against 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=1` rerun. - 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. - With two workers sharing one server, five runs failed. Four were runs interfering with each other: add-connection counts every new row on the server, and generation-parameter-controls was creating rows at the same time. They passed with `--workers=1`, which is what the CI shards use. - The fifth was the WebKit Max Output Tokens race fixed above. That test then passed 9 of 9 (three projects, three repeats each). - 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`, client `tsc --noEmit`, ESLint on ConnectionEditor and `pnpm localization:check`: all pass. No user-facing copy was added. - Independent review: 6 findings, all fixed in `cef9ada34b`: - a race check that could no longer fail; - a negative check naming a button that doesn't exist; - "Max output: 0" in the Model editor; - the narrower header width also reaching the Back button; - two shared-server cleanup gaps. - CodeRabbit (local, on `0c3f238d66`): 1 finding, fixed in `138faee25c`. 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: - add-connection's `addedModels` counts 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 - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:40:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8842
No description provided.