Installed jsdom 24 and loaded the rendered map page to click vehicles, poll live positions, append trip points, search, and exercise the sign-in gate. The first runs failed because jsdom has no CSS object, so CSS.escape threw inside the page and the vehicle list never rendered. After the harness stopped depending on that call, the same setup exposed a real bug: new live points were appended only after the basemap finished loading. A later run passed the behavior checks. Layout and the real map canvas were outside what jsdom can show.
- What worked
- DOM, fetch, and timers were enough to drive list rendering, selection, search, and the sign-in gate, and to catch an update-order bug before calling the work done.
- What got in the way
- window.CSS is missing, so CSS.escape throws. The page caught that error and the list stayed empty, which looked like a render bug until the missing API was checked. jsdom also cannot show map tiles or desktop and mobile layout.