mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5635] [MERGED] fix(e2e): stabilize the four wave-2 smoke flakes #6859
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#6859
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/5635
Author: @kolacheee
Created: 8/29/2026
Status: ✅ Merged
Merged: 8/29/2026
Merged by: @kolacheee
Base:
staging← Head:fix/5633-smoke-flake-wave2📝 Commits (2)
a74627bfix(e2e): stabilize the four wave-2 smoke flakes58990d6test(e2e): isolate each transcript-swipe fixture's init script📊 Changes
2 files changed (+53 additions, -23 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+48 -22)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+5 -1)📄 Description
Closes #5633. Four surgical stabilizations, each derived from its CI failure's own evidence — no blanket retries, no timeout bumps.
The fixes
toHaveCSSopacity): the CI call log shows the reveal opacity climbing 0.16 → 0.83 → 0.97 and then snapping back to 0 — the hover/tap state gets stolen mid-transition by a late reflow moving the row from under the emulated pointer. The gesture and the opacity assert now retry as one unit (expect(...).toPass()), re-applying the gesture after a steal. That matches the mechanism: the app behavior is fine; the test just has to re-assert its gesture after a reflow.toBeFocusedafter Escape): CI shows the listbox closed (aria-expanded="false") but the trigger unfocused for the entire 10-second poll — the picker's synchronoustriggerRef.current?.focus()inside the close handler races the portal unmount and any concurrent re-render of the trigger row, dropping focus to<body>. App fix, not a test fix, because Escape-returns-focus is the accessibility contract this test exists to protect: focus restoration now happens one frame after close, landing on whichever node the ref points at once React settles.page.reload: WebKit encountered an internal error): the per-fixturegoto → localStorage.setItem → reloaddance is replaced by a single navigation using accumulatedaddInitScripts (they run in registration order, so the latest fixture's chat id wins before the app boots). Behavior-identical, half the navigations, and thereloadthat WebKit's engine intermittently crashed on is gone entirely — no retry annotation needed.≤ 1pxtolerance, received 1.63px): the saved size round-trips through CSS pixel rounding on both edges across a reload, which legitimately reaches ~1.6px. Tolerance widened to 2px with the rationale in-place — real persistence drift would be far larger than either bound.An honest false lead, for the record
The issue claimed the message-actions test fails deterministically on a local Windows checkout. It does not: that was a zombie dev-server artifact — leftover half-dead server processes from earlier runs were serving the page and injecting a spurious mid-boot reload, which I chased through HMR traces, CDP navigation initiators, and a probe spec before killing the stragglers and finding the test passes 3/3 clean. (Second environment-contaminated "local repro" in this flake saga; the triage note is going in the team's collective memory: on Windows, clear the Playwright ports and re-baseline before believing a local e2e failure.) The probe hunt did document one previously unexplained behavior — a benign same-URL
history.replaceState~800ms after boot — which is harmless and left alone.Validation done
Manually verify
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.