mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5629] [MERGED] fix(e2e): stabilize the two remaining smoke flakes #6860
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#6860
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/5629
Author: @kolacheee
Created: 8/29/2026
Status: ✅ Merged
Merged: 8/29/2026
Merged by: @kolacheee
Base:
staging← Head:fix/5618-smoke-flakes📝 Commits (1)
36a1b9efix(e2e): stabilize the two remaining smoke flakes📊 Changes
2 files changed (+43 additions, -13 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+34 -11)📝
packages/client/src/components/game/GameSurface.tsx(+9 -2)📄 Description
Closes #5618. Root causes taken from the failed CI run's own artifacts (error context, trace, page snapshot) rather than guessed — and neither is a "slow runner needs longer timeouts" story, so no timeouts were touched.
core-flows.e2e.ts:398— Art scale sliders (mobile-chromium)The CI error shows the slider value stuck at 1.9 while the poll waited for < 1.625 — the low click never registered. The test read each slider's bounding box once, then fired three raw
page.mouse.clicks at absolute coordinates.page.mousebypasses every actionability/stability wait, and changing a scale slider resizes live content around it, so on a slow runner the second click lands on a stale position and silently misses. Fix: element-relativelocator.click({ position })with a fresh bounding box per click — Playwright now waits for the element to be stable and positions against its box at dispatch time.core-flows.e2e.ts:8608— Game widget Chroma (mobile-webkit)Not a timing flake — a strict-mode violation:
getByTitle('Edit Chroma clock')resolved to two buttons. The CI page snapshot shows only one visible button, which pins the second as a CSS-hidden duplicate:GameSurfaceresetscompactHudWidgetsto a flatfalsewhenever the widget list is empty (i.e. during initial load, before the queries resolve), andfalsemounts the desktop widget rail —hidden md:flex, so invisible on mobile but in the DOM — until the layout effect re-measures and flips compact back on. On a slow WebKit runner the test's tap lands inside that window, and both the mobile expanded row and the hidden desktopWidgetCardcarry the same title. This also explains the observed retry storms: the window is load-timing dependent, so a slow run can hit it on every attempt.Two fixes, root cause first:
window.innerWidth < 768heuristic the state initializes with, so the desktop rail never mounts on a mobile viewport, even transiently. (Desktop behavior unchanged — the heuristic evaluates to the oldfalsethere.)hidden md:*responsive pattern generally — a hidden duplicate still trips strict mode even though only one copy can ever be interacted with.Correction for the record
The issue claimed both tests reproduce on a plain local staging checkout — that turned out to be contaminated evidence (a Playwright browser-binary version mismatch makes every test "fail" instantly). With browsers properly installed, both tests pass locally pre-fix; the flake is CI-timing-dependent, exactly as the run history suggested. Noted on the issue.
Validation done
--retries=0 --repeat-each=6)tracker-gallery-ui,open-issues) passManually verify
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.