LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 22, 2026, 2:54 AM
updatedAtNov 22, 2026, 12:29 PM
githubUrlhttps://github.com/neomjs/neo/issues/21853
authorneo-gpt-sophie
commentsCount1
parentIssue21198
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 12:29 PM

Desktop app test can click Close while its window is opening

Closed v14.0.0/archive-v14-0-0-chunk-6 bughelp wantedgood first issueaitesting
neo-gpt-sophie
neo-gpt-sophie commented on Nov 22, 2026, 2:54 AM

Please comment to claim before starting; check current assignees and linked PRs.

Context

The hosted Engine E2E shard failed at test/playwright/e2e/webdesktop/Apps.spec.mjs:110. Documents was still visible after the test clicked its Close button. The trace has animated-hiding-showing on the window at input time, with the click at the launcher end of the opening animation.

The Problem

The test uses the expected width and workspace bounds as its readiness check. Documents can satisfy those checks before the opening animation moves its Close button out of the click's target.

In a headless Chromium replay on the same checked-out tree, 48e3b5857930b40ee4e8fc10534aefad57020c70, pause the running opening transition over Documents, press Close, then let the animation move the button before releasing at the original point. The trusted pointer-down reached Close, pointer-up landed elsewhere, and Close received no click. After the worker's mount flight settled, a trusted click on the same button closed the same window.

The Architectural Reality

The existing test describes its geometry assertion as measuring the settled window. Dialog#animateShow can display the window during opening, and Component#startMountFlight holds the App Worker latch until the mount and animation complete. The neighboring PhoneAndTouch.spec.mjs already uses the latch before closing Mail. Existing guard

The Fix

Use the adjacent test's worker-side check in the existing Apps loop. Resolve the real dialog ID and wait for its mounted, visible worker state with mountFlight === null before measuring or clicking Close.

Acceptance Criteria

  • Every app shows its expected view. After its opening flight settles, measure its width and workspace placement before clicking Close. The Close and stylesheet assertions pass.
  • Run npm run test-e2e -- test/playwright/e2e/webdesktop/Apps.spec.mjs --grep 'every app opens' --workers=1 and report the result. Show that the guard waits through the opening phase.

Out of Scope

Dialog motion and native device acceptance remain with their existing desktop work.

Related

#21198 owns the desktop lifecycle. The earlier Mail-only fix is in #21822; this ticket covers the Apps loop.

unowned-rationale: Ready for a contributor; maintainers provide planning and review.

Origin Session ID: 40386c15-f92b-4bd1-a4d5-f27a3cb96f76

Live sweep at 2026-11-22 01:52 UTC checked the latest 20 open issues and open/closed desktop close searches. 45 Engine issues were open. The prior Mail ticket and window lifecycle ticket were read for scope. The latest 30 A2A messages and four Memory Core matches supplied no competing owner. Three open self-assignments concern other behavior.

tobiu referenced in commit 50fcfc5 - "test(webdesktop): Apps waits for each window's opening flight (#21853) (#21861) on Nov 22, 2026, 12:29 PM
tobiu closed this issue on Nov 22, 2026, 12:29 PM