test(e2e): point the AI-search and editor-geometry specs at what the markup now is

Two of the three e2e failures blocking deploys since 3d3076037 are specs still
describing the pre-refactor DOM. Neither is a product defect.

AI search: the standalone-ai-search control in query-editor.ts is still a real
button and still keyboard-reachable; only its accessible name changed, "Open AI
search" -> "Ask AI", with the rest of that rename. Locator updated.

Editor geometry: the bordered box is now the editor's wrapper rather than a
child of it, so the spec was measuring a div 2px inside the border and comparing
it against the 40px controls. Measured against the wrapper it matches exactly
(40 == 40), which is what the assertion is actually about.

That leaves the spec's second assertion genuinely failing: the query text now
sits 1px above centre (insets 8/10 in a 38px editor, 9/11 against the wrapper).
Inserting the wrapper shrank the editor's own box 40 -> 38 and Monaco no longer
centres the line evenly. Left failing on purpose — it is a real, if small,
visual regression, and silencing it would hide the thing the assertion exists
for. It now fails on that one point instead of on a misleading height mismatch.

Not touched: log-list-virtual-scroll "preserve the row under the reader"
(page.after "older-0-00100" vs page.before "seed-02495" on the first of six
older-page fetches). That asserts exactly the behaviour 3d3076037 set out to
deliver, so it needs its author, not a looser assertion.
This commit is contained in:
Anthony Alaribe 2026-09-01 02:22:12 +02:00
commit 471f57fba5
2 changed files with 8 additions and 2 deletions