[PR #4346] [MERGED] test: isolate Playwright mutable fixtures #6343

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4346
Author: @SpicyMarinara
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/4343-playwright-fixture-isolation


📝 Commits (3)

  • 7905327 chore: start issue #4343
  • b1ff694 test: isolate Playwright mutable fixtures
  • bd7f907 test: guard Playwright data directory wiring

📊 Changes

11 files changed (+244 additions, -67 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 CONTRIBUTING.md (+1 -1)
📝 e2e/core-flows.e2e.ts (+87 -51)
📝 e2e/global-setup.mjs (+1 -1)
➕ e2e/start-servers.mjs (+119 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -1)
📝 packages/client/src/components/chat/ConversationView.tsx (+2 -1)
📝 packages/client/src/components/ui/HelpTooltip.tsx (+1 -1)
📝 playwright.config.ts (+10 -7)
📝 scripts/dev.mjs (+3 -1)
📝 scripts/regressions/open-issues.regression.ts (+17 -3)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote staging to main.

Linked issue

Closes #4343

Why this change

The desktop and mobile Playwright projects used the same file-backed Engine server. Tests that changed synced UI settings, backgrounds, chats, or other fixtures could therefore alter the other project while it was still running, making the full two-worker sweep nondeterministic and hiding genuine regressions behind contradictory expectations and cleanup timeouts.

What changed

  • Start desktop and mobile Playwright projects on separate client/server ports with separate temporary data directories.
  • Build the shared workspace once before starting both project servers, avoiding concurrent mutations of shared/dist.
  • Reset synced UI settings before each test and exercise accent colors through the live UI store and derived CSS tokens.
  • Align stale Tracker and background-library smoke assertions with current application behavior.
  • Make transient help tooltips pointer-transparent so they cannot intercept an intended control click.
  • Keep focused mobile composers expanded while history scroll events run.
  • Document the isolated browser-test setup and guard its project wiring in the open-issue regression lane.

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

Automated evidence completed by the contributor:

  • pnpm check
  • pnpm regression:issues
  • Focused Playwright coverage for the original failure clusters and the mobile composer race
  • pnpm smoke:ui — 166 passed, 88 skipped, 0 failed
  • pnpm smoke:ui repeated from a fresh data root — 166 passed, 88 skipped, 0 failed

Manual verification needed

  • Manually verify a desktop and mobile smoke run can use different appearance settings and backgrounds without visible cross-project state.
  • Manually verify background gallery controls remain responsive when help tooltips appear.
  • Manually verify a focused mobile Conversation and Roleplay composer stays open while scrolling older history.

Docs and release impact

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

CONTRIBUTING.md and CHANGELOG.md are updated. No user-facing docs/ page changed, so no docs-i18n follow-up is required.

Summary by CodeRabbit

  • Bug Fixes
    • Mobile chat composers now remain expanded while focused, even when scrolling through conversation history.
    • Help tooltips no longer intercept pointer interactions.
  • Tests
    • Improved appearance, tracker, background-selection, and mobile interaction checks.
    • Desktop and mobile smoke tests now use isolated app data to reduce cross-test interference.
  • Documentation
    • Updated smoke-test guidance to reflect separate desktop and mobile test environments.

🔄 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/4346 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/4343-playwright-fixture-isolation` --- ### 📝 Commits (3) - [`7905327`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7905327b496ff12460acb5f073b64b36da6e2415) chore: start issue #4343 - [`b1ff694`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b1ff694dffdb558ccc58323a3580d9f830f37ce8) test: isolate Playwright mutable fixtures - [`bd7f907`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bd7f907e349528651a31c1b7fba4d3471986c449) test: guard Playwright data directory wiring ### 📊 Changes **11 files changed** (+244 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `CONTRIBUTING.md` (+1 -1) 📝 `e2e/core-flows.e2e.ts` (+87 -51) 📝 `e2e/global-setup.mjs` (+1 -1) ➕ `e2e/start-servers.mjs` (+119 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+2 -1) 📝 `packages/client/src/components/ui/HelpTooltip.tsx` (+1 -1) 📝 `playwright.config.ts` (+10 -7) 📝 `scripts/dev.mjs` (+3 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+17 -3) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote `staging` to `main`. ## Linked issue Closes #4343 ## Why this change The desktop and mobile Playwright projects used the same file-backed Engine server. Tests that changed synced UI settings, backgrounds, chats, or other fixtures could therefore alter the other project while it was still running, making the full two-worker sweep nondeterministic and hiding genuine regressions behind contradictory expectations and cleanup timeouts. ## What changed - Start desktop and mobile Playwright projects on separate client/server ports with separate temporary data directories. - Build the shared workspace once before starting both project servers, avoiding concurrent mutations of `shared/dist`. - Reset synced UI settings before each test and exercise accent colors through the live UI store and derived CSS tokens. - Align stale Tracker and background-library smoke assertions with current application behavior. - Make transient help tooltips pointer-transparent so they cannot intercept an intended control click. - Keep focused mobile composers expanded while history scroll events run. - Document the isolated browser-test setup and guard its project wiring in the open-issue regression lane. ## 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` Automated evidence completed by the contributor: - `pnpm check` - `pnpm regression:issues` - Focused Playwright coverage for the original failure clusters and the mobile composer race - `pnpm smoke:ui` — 166 passed, 88 skipped, 0 failed - `pnpm smoke:ui` repeated from a fresh data root — 166 passed, 88 skipped, 0 failed ### Manual verification needed - Manually verify a desktop and mobile smoke run can use different appearance settings and backgrounds without visible cross-project state. - Manually verify background gallery controls remain responsive when help tooltips appear. - Manually verify a focused mobile Conversation and Roleplay composer stays open while scrolling older history. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) `CONTRIBUTING.md` and `CHANGELOG.md` are updated. No user-facing `docs/` page changed, so no `docs-i18n` follow-up is required. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Mobile chat composers now remain expanded while focused, even when scrolling through conversation history. * Help tooltips no longer intercept pointer interactions. * **Tests** * Improved appearance, tracker, background-selection, and mobile interaction checks. * Desktop and mobile smoke tests now use isolated app data to reduce cross-test interference. * **Documentation** * Updated smoke-test guidance to reflect separate desktop and mobile test environments. <!-- 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-23 04:09:31 +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#6343
No description provided.