[PR #7857] [MERGED] test(e2e): move core-flows, chat-sweep and sept22 specs to the shipped UI #7969

Closed
opened 2026-10-24 04:09:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7857
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/ready-e2e-core-flows-drift


📝 Commits (1)

  • 0d21041 test(e2e): move core-flows, chat-sweep and sept22 specs to the shipped UI

📊 Changes

3 files changed (+147 additions, -75 deletions)

View changed files

📝 e2e/chat-sweep.e2e.ts (+3 -2)
📝 e2e/core-flows.e2e.ts (+134 -68)
📝 e2e/sept22-assigned-sweep.e2e.ts (+10 -5)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue. This is part of the release-readiness sweep (lane e2e-core-flows-drift). An issue should be opened for it if one is wanted for tracking.

Closes #

Why this change

  • Several end-to-end tests in core-flows, chat-sweep and sept22-assigned-sweep were still testing UI that no longer exists, so they failed on every run and hid real regressions.
  • #7312 moved Professor Mari into the omnibar. The Home navigator, the floating chat with its Dismiss and reopen buttons, the per-update "Not now" requests and the persona picker's "Ungrouped" folder are all gone.
  • #7362 removed drag handles: you now drag a list row by its body.
  • The background sort menu now starts with "Manual order", and the character editor has an 11th tab (Onboarding, #7308).

Only test code changes here. Each test now runs against the new version of the same flow, and a step is dropped only where #7312 removed that feature on purpose.

What changed

  • Professor Mari opens a named character: opens search from Home's address bar (on phones, which hide the bar, with Cmd/Ctrl+K), types the name, presses Enter and expects that character's editor to open with search closed. The step that waited for the removed navigator's "Here, found it!" reply is gone.
  • Character editor hands context to Professor Mari: clicks the editor's own "Ask Professor Mari" button. Home's button stays mounted behind the editor, so an unscoped match found two buttons.
  • Professor Mari follows an open conversation: her omnibar window stays open, with your unsent question intact, while a chat opens beneath it. When you reopen her with Cmd/Ctrl+J over that chat, she names it. Going Home leaves no Mari dialog open. The floating chat's reopen and Dismiss checks were removed with the floating chat in 5bb03f918.
  • Starter suggestions, history and bulk deletion: these tests open her omnibar window and use its Chats tab. Since 625611892 your messages show as unlabelled bubbles, so the starter-suggestions test now checks that no "You" label appears; it still checks the Edit button's muted colour.
  • Home lifecycle stays bounded: the Professor tab now opens her omnibar window over Home, so the address stays marinara/home and Home stays selected. Her window adds its own timers while it is open, so the test now checks that closing it gives all of them back. The 10-cycle leak checks are unchanged.
  • Agent updates "Not now": mocks the single batched POST /api/capability-packages/updates/decline (63ccd8cd8). The test checks that both updates go in one request and that the old per-update endpoint is never called.
  • Personas are chosen per chat (chat-sweep): clicks Bob Persona directly in the picker and checks that the "Ungrouped" folder is gone (b06687ab6).
  • Drags: character and persona drops start from the row body, just left of centre so they miss the row's action buttons. The sept22 folder-row reorder starts from the row body as drag-list-scroll.e2e.ts does. It measures the drop target after the drag starts and checks the insert-before marker before dropping.
  • Background sort expects Manual order before A-Z, Z-A, Newest and Oldest. The character editor tab count goes from 10 to 11.

Known failures this PR deliberately leaves alone

  • Character and Persona avatar actions stay separated and visually balanced still fails. The 11-tab count now passes, but the next check fails on header overflow on desktop (1440px). On phones it fails at the header-row check (~:4438) that the brief said to leave untouched. The e2e-character-editor-layout lane owns both: it fixes the crowded editor header in CharacterEditor.tsx.
  • Professor Mari bulk chat deletion follows the active accent now gets through the new flow but fails where it should. Since 7160b4798 (omnibar M6, part of #7312), "Delete selected" uses mari-btn mari-btn--danger, a hard-coded red (oklch(0.58 0.21 27)), instead of the active accent. That undoes e58cbb245 ("fix Professor Mari bulk delete accent") and breaks the theme-colours-only rule. This lane allows no product code, so the accent assertions stay in place. The product fix needs a follow-up, and whoever makes it should update the old mari-chrome-control--primary class check to the new button class.

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

Agent run, after merging current origin/staging (all Playwright runs with --workers=1):

  • pnpm check: passed (includes check:e2e-types); prettier --check on the three specs: clean.
  • core-flows.e2e.ts, the 12 touched tests: 10 passed on desktop-chromium. On mobile-chromium and mobile-webkit, 7 passed and 3 were skipped (they are desktop-only by design). On all three projects, the only failures are the two known ones above.
  • chat-sweep.e2e.ts + sept22-assigned-sweep.e2e.ts in full: 31 passed on each of desktop-chromium, mobile-chromium and mobile-webkit.
  • Drag tests with --repeat-each=2 on desktop-chromium: the two core-flows chat drops, the background library drag and all 14 sept22 folder-row sorting tests passed (34/34).

Manual verification notes

  • Manually check in a browser that Home's address bar opens search and that typing a character's name and pressing Enter opens its editor.
  • Manually check that "Not now" in the agent update prompt sends one request and the prompt stays closed after a reload.
  • Manually check that dragging a character or persona row by its body onto an open chat adds it, or asks before replacing the persona.

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)

UI evidence (if applicable)

Not applicable: only test files change.

Summary by CodeRabbit

  • Tests
    • Updated automated checks to reflect current persona selection and character navigation, including desktop and mobile access.
    • Adjusted coverage for dismissing multiple agent updates at once, resource and folder dragging, character-editor tabs, and background sorting options.

🔄 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/7857 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/ready-e2e-core-flows-drift` --- ### 📝 Commits (1) - [`0d21041`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d210418a56bc59af28593f31932b89272b39a76) test(e2e): move core-flows, chat-sweep and sept22 specs to the shipped UI ### 📊 Changes **3 files changed** (+147 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `e2e/chat-sweep.e2e.ts` (+3 -2) 📝 `e2e/core-flows.e2e.ts` (+134 -68) 📝 `e2e/sept22-assigned-sweep.e2e.ts` (+10 -5) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue. This is part of the release-readiness sweep (lane `e2e-core-flows-drift`). An issue should be opened for it if one is wanted for tracking. Closes # ## Why this change - Several end-to-end tests in `core-flows`, `chat-sweep` and `sept22-assigned-sweep` were still testing UI that no longer exists, so they failed on every run and hid real regressions. - #7312 moved Professor Mari into the omnibar. The Home navigator, the floating chat with its Dismiss and reopen buttons, the per-update "Not now" requests and the persona picker's "Ungrouped" folder are all gone. - #7362 removed drag handles: you now drag a list row by its body. - The background sort menu now starts with "Manual order", and the character editor has an 11th tab (Onboarding, #7308). Only test code changes here. Each test now runs against the new version of the same flow, and a step is dropped only where #7312 removed that feature on purpose. ## What changed - **Professor Mari opens a named character**: opens search from Home's address bar (on phones, which hide the bar, with Cmd/Ctrl+K), types the name, presses Enter and expects that character's editor to open with search closed. The step that waited for the removed navigator's "Here, found it!" reply is gone. - **Character editor hands context to Professor Mari**: clicks the editor's own "Ask Professor Mari" button. Home's button stays mounted behind the editor, so an unscoped match found two buttons. - **Professor Mari follows an open conversation**: her omnibar window stays open, with your unsent question intact, while a chat opens beneath it. When you reopen her with Cmd/Ctrl+J over that chat, she names it. Going Home leaves no Mari dialog open. The floating chat's reopen and Dismiss checks were removed with the floating chat in 5bb03f918. - **Starter suggestions, history and bulk deletion**: these tests open her omnibar window and use its Chats tab. Since 625611892 your messages show as unlabelled bubbles, so the starter-suggestions test now checks that no "You" label appears; it still checks the Edit button's muted colour. - **Home lifecycle stays bounded**: the Professor tab now opens her omnibar window over Home, so the address stays `marinara/home` and Home stays selected. Her window adds its own timers while it is open, so the test now checks that closing it gives all of them back. The 10-cycle leak checks are unchanged. - **Agent updates "Not now"**: mocks the single batched `POST /api/capability-packages/updates/decline` (63ccd8cd8). The test checks that both updates go in one request and that the old per-update endpoint is never called. - **Personas are chosen per chat** (chat-sweep): clicks Bob Persona directly in the picker and checks that the "Ungrouped" folder is gone (b06687ab6). - **Drags**: character and persona drops start from the row body, just left of centre so they miss the row's action buttons. The sept22 folder-row reorder starts from the row body as `drag-list-scroll.e2e.ts` does. It measures the drop target after the drag starts and checks the insert-before marker before dropping. - **Background sort** expects `Manual order` before A-Z, Z-A, Newest and Oldest. The character editor tab count goes from 10 to 11. ### Known failures this PR deliberately leaves alone - **`Character and Persona avatar actions stay separated and visually balanced`** still fails. The 11-tab count now passes, but the next check fails on header overflow on desktop (1440px). On phones it fails at the header-row check (~:4438) that the brief said to leave untouched. The `e2e-character-editor-layout` lane owns both: it fixes the crowded editor header in `CharacterEditor.tsx`. - **`Professor Mari bulk chat deletion follows the active accent`** now gets through the new flow but fails where it should. Since 7160b4798 (omnibar M6, part of #7312), "Delete selected" uses `mari-btn mari-btn--danger`, a hard-coded red (`oklch(0.58 0.21 27)`), instead of the active accent. That undoes e58cbb245 ("fix Professor Mari bulk delete accent") and breaks the theme-colours-only rule. This lane allows no product code, so the accent assertions stay in place. The product fix needs a follow-up, and whoever makes it should update the old `mari-chrome-control--primary` class check to the new button class. ## 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` Agent run, after merging current `origin/staging` (all Playwright runs with `--workers=1`): - `pnpm check`: passed (includes `check:e2e-types`); `prettier --check` on the three specs: clean. - `core-flows.e2e.ts`, the 12 touched tests: 10 passed on desktop-chromium. On mobile-chromium and mobile-webkit, 7 passed and 3 were skipped (they are desktop-only by design). On all three projects, the only failures are the two known ones above. - `chat-sweep.e2e.ts` + `sept22-assigned-sweep.e2e.ts` in full: 31 passed on each of desktop-chromium, mobile-chromium and mobile-webkit. - Drag tests with `--repeat-each=2` on desktop-chromium: the two core-flows chat drops, the background library drag and all 14 sept22 folder-row sorting tests passed (34/34). ### Manual verification notes - Manually check in a browser that Home's address bar opens search and that typing a character's name and pressing Enter opens its editor. - Manually check that "Not now" in the agent update prompt sends one request and the prompt stays closed after a reload. - Manually check that dragging a character or persona row by its body onto an open chat adds it, or asks before replacing the persona. ## 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) ## UI evidence (if applicable) Not applicable: only test files change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Updated automated checks to reflect current persona selection and character navigation, including desktop and mobile access. * Adjusted coverage for dismissing multiple agent updates at once, resource and folder dragging, character-editor tabs, and background sorting options. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:17 +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#7969
No description provided.