[GH-ISSUE #4343] [Test] Isolate Playwright appearance and background fixtures #2352

Closed
opened 2026-10-21 05:47:33 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4343

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The full browser sweep is not deterministic because desktop and mobile projects share mutable appearance and background state. Some assertions also mutate CSS variables directly while the live accent controller restores the configured value, and a background tooltip can retain pointer interception during gallery cleanup.

Evidence

  • pnpm smoke:ui: 153 passed, 88 skipped, 13 failed.
  • pnpm exec playwright test -c playwright.config.ts --last-failed --workers=1: 1 passed, 12 failed.
  • Serial reproduction means shared parallel state is not the only cause.
  • Failure groups: accent variables reverting to rgb(212, 172, 251); background Browse-library clicks intercepted by a tooltip; background cleanup DELETE requests timing out; and a stale tracker empty-state expectation.

Acceptance criteria

  • Give each browser project/test isolated appearance and background fixtures.
  • Drive accent tests through supported application state or explicitly suspend the live controller.
  • Ensure transient tooltips cannot block gallery controls.
  • Make cleanup bounded and independent per test.
  • Update stale tracker expectations to the current UI contract.
  • The complete desktop/mobile Playwright sweep passes repeatedly, including with normal parallel workers.

Follow-up to #4340; implement only after that PR lands.

Originally created by @SpicyMarinara on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4343 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The full browser sweep is not deterministic because desktop and mobile projects share mutable appearance and background state. Some assertions also mutate CSS variables directly while the live accent controller restores the configured value, and a background tooltip can retain pointer interception during gallery cleanup. ## Evidence - pnpm smoke:ui: 153 passed, 88 skipped, 13 failed. - pnpm exec playwright test -c playwright.config.ts --last-failed --workers=1: 1 passed, 12 failed. - Serial reproduction means shared parallel state is not the only cause. - Failure groups: accent variables reverting to rgb(212, 172, 251); background Browse-library clicks intercepted by a tooltip; background cleanup DELETE requests timing out; and a stale tracker empty-state expectation. ## Acceptance criteria - Give each browser project/test isolated appearance and background fixtures. - Drive accent tests through supported application state or explicitly suspend the live controller. - Ensure transient tooltips cannot block gallery controls. - Make cleanup bounded and independent per test. - Update stale tracker expectations to the current UI contract. - The complete desktop/mobile Playwright sweep passes repeatedly, including with normal parallel workers. Follow-up to #4340; implement only after that PR lands.
bsakaguchi 2026-10-21 05:47:33 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

I am taking this in agent/4343-playwright-fixture-isolation. The linked draft PR will isolate the Playwright state and fix the stale browser contracts without changing product behavior.

<!-- gh-comment-id:5142422029 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): I am taking this in `agent/4343-playwright-fixture-isolation`. The linked draft PR will isolate the Playwright state and fix the stale browser contracts without changing product behavior.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

Resolved by #4346, merged into staging as 4c4ce7cfbc. The full 254-test Playwright sweep passed twice consecutively under normal two-worker parallelism (166 passed, 88 skipped each run).

<!-- gh-comment-id:5142879834 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Resolved by #4346, merged into `staging` as 4c4ce7cfbc04632a55d031888f6988a1095eb140. The full 254-test Playwright sweep passed twice consecutively under normal two-worker parallelism (166 passed, 88 skipped each run).
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#2352
No description provided.