mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7216] [MERGED] test(e2e): measure phone tool overlap after the menu settles #7627
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#7627
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/7216
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:test/phone-tools-settle-7200📝 Commits (1)
15c6991test(e2e): measure phone tool overlap after the menu settles📊 Changes
1 file changed (+42 additions, -17 deletions)
View changed files
📝
e2e/phone-bubbles.e2e.ts(+42 -17)📄 Description
Linked issue
Closes #7200
Why this change
e2e/phone-bubbles.e2e.ts› "large themed tools scroll inside a short phone viewport without covering their trigger" failed on mobile-webkit about once in three runs, including on untouchedmainandstaging. The report was[null], so it did not say what covered the message box.nullelement was: a row of the Chat tools menu,control:session(menu rows are.mari-window-bubblewithoutdata-window).left 4 → 124,top 263 → 59). Framer Motion'sReorder.Itemlayout animation then glides each row from its old spot to the new one over about 300 ms, using inlinetransform. This is not a Web Animation, sodocument.getAnimations()is empty. Under CPU load the overlap check landed inside that glide. The row'sgetBoundingClientRect()(translate3d(-118px, 201px)) crossed the message box.What changed
expectComposerClearAndNoSideScroll(used by 11 phone tests) now waits until every.mari-window-bubbleand the message box hold the same boxes for 3 animation frames, with a 3 s limit. It then measures as before. The assertion is not weaker: it is still a strict unclipped-box overlap check, and it now also fails (settled: false) if the bubbles never stop moving, so it cannot pass by measuring at a lucky moment.menu:<tool id>for menu rows,menu:lockfor the lock, and anouterHTMLprefix for anything else.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run evidence (local macOS, Playwright WebKit iPhone 15 Pro; boxes above left for the human reviewer):
staging05843b89bonly under CPU load (12yesprocesses on 10 cores): 1/12, 3/16, 4/12 and 1/8 failures. Unloaded it passed 6/6 and 20/20. Diagnostics captured the row name, its in-flighttranslate3d, the menu moving from below to beside the button, and the late message-box mount. Hit tests at the overlap points returned the message box.pnpm regression:ui e2e/phone-bubbles.e2e.ts --project=mobile-webkit --workers=1 -g "large themed tools scroll" --repeat-each=16→ 16 passed.--repeat-each=10→ 10 passed, 0 failed.pnpm regression:ui e2e/phone-bubbles.e2e.ts --project=mobile-webkit --project=mobile-chromium→ 27 passed, 5 skipped (the spec's existing project skips).overlap: ["menu:control:volume"], settled: true.settled: false, so a bubble that never settles is not measured at a lucky moment.pnpm checkpassed on the commit.coderabbit review --agent --committed, CLI 0.7.6) on the commit: review completed, 0 findings.Independent verification (second agent, same machine, branch head
15c699193):control:volumereally covered the box (all hit-test samples landed on it). From then until ~340 ms,control:sessionandcontrol:volumeglided fromtranslate3d(-120px, 204px)to none with unclipped boxes over the message box, but 0 hit-test samples were visible (clipped by the list). A screenshot taken mid-glide shows only the lock button in the menu column.control:session(WebKit and Chromium, and 45/45 under CPU load). The new helper failed 0/15 per run (0/45 unloaded and 0/45 under load on WebKit, 0/15 on Chromium).yesprocesses) failed 1/12 with the original[null]. Its trace shows every Chat tools row (LI[data-chat-tools-menu-item]) carryingtranslate3d(-120px, 204px)during the steps just before the check. The branch under the same load passed 16/16.{ settled: true, overlap: ["menu:control:volume"] }. An endless CSS jiggle on the launcher fails withsettled: falseon both engines.pnpm regression:ui e2e/phone-bubbles.e2e.ts --project=mobile-webkit --workers=1 -g "large themed tools scroll" --repeat-each=10→ 10 passed.staging(241ee8f2d; not pushed, since the PR has no conflicts).pnpm check→ exit 0.Manual verification notes
mobile-webkite2e shard passesphone-bubbles.e2e.ts› "large themed tools scroll inside a short phone viewport without covering their trigger".pnpm regression:ui e2e/phone-bubbles.e2e.ts --project=mobile-webkit --workers=1 -g "large themed tools scroll" --repeat-each=10reports 10 passed. For a harder run, repeat it while the CPU is busy (for example, other test suites running).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Agent note: test-only change. No docs, CHANGELOG or translation impact.
UI evidence (if applicable)
Not a UI change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.