Commit 4dfdfea
test(045): tear-off E2E suite reliable under WinAppDriver (#419)
The 3 [Ignore]'d tests in DockingTearOffE2ETests.cs (E02/E03/E04) tried
to drive cross-window float→host drags that turn out to be blocked at
the WinAppDriver pipeline level: when the source floating window is
hidden mid-drag (single-tab BeginFloatingTearOff → AppWindow.Hide()),
the session-bound input pipeline freezes and subsequent moves never
reach the host's overlay PointerEntered handlers — verified via
detailed Tracker.OnTick / Overlay.PointerEntered tracing. Pure-Win32
SendInput has its own coherence problem (test-process and host-process
GetAsyncKeyState(VK_LBUTTON) disagree mid-drag, likely UIPI hook
interaction).
Replace those tests with a reliable 4-test suite that exercises the
WinAppDriver-tractable scenarios end-to-end with real mouse input.
12/12 green across 3 consecutive runs:
- E01: single-tab tear-off → floating window (drop-outside).
- E02: multiple sequential tear-offs (A then B → two floating windows,
asserts OnContentFloating/Floated fire exactly twice).
- E03: pane content state survives the tear-off layout mutation.
- E04: tear-off pipeline reliable across 3 repeated invocations.
Cross-window dock-back / split / Esc-cancel scenarios remain covered
by NativeDockingTearOffFixture's 14 synthetic-event selftest fixtures
(T04/T05/T13). Class-level docstring documents the WinAppDriver
limitation and the synthetic-event fallback.
Also bumps the fixture's diagnostic trace ring buffer from 6 to 12 so
post-drag failure dumps show enough pipeline stages to localize a
regression (Press → threshold → BeginTearOff → Tracker.Start → ...).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 321b0f8 commit 4dfdfea
2 files changed
Lines changed: 198 additions & 122 deletions
File tree
- tests
- Reactor.AppTests.Host/Fixtures
- Reactor.AppTests/Tests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments