mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
test(e2e): point the AI-search and editor-geometry specs at what the markup now is
Two of the three e2e failures blocking deploys since3d3076037are 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 behaviour3d3076037set out to deliver, so it needs its author, not a looser assertion.
This commit is contained in:
parent
7dc1cb1f81
commit
471f57fba5
2 changed files with 8 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue