Commit 64c0d72
www/e2e: stabilize YTD legend hover + CrashPlot tooltip-order tests
Two flakes surfaced once the duckdb fix unblocked the plot-rendering
path:
* **YTD legend hover** (`hovering a legend item thickens its trace
line`): on Linux CI (and intermittently elsewhere), Playwright's
`scrollIntoViewIfNeeded` landed the target legend item near a
viewport edge where the sticky `GeoNavBar` or a sibling plot's
`controlsWrapper` intercepted pointer events. Explicitly scroll the
item to viewport center (`block: 'center'`) before hovering — parks
it well clear of either.
* **CrashPlot tooltip-order test**: the original assertion expected
`tipTypes == stackOrder.reverse()` (top-of-stack first). Plotly's
`x unified` hovermode actually lists traces in `gd.data` order
(matching `legend.traceorder: 'normal'`) — bottom-first for our
stacked bars. Flip the assertion and comment that the UX tradeoff
(top-first tooltip would also reverse the legend) is intentional.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2317718 commit 64c0d72
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
239 | | - | |
| 244 | + | |
240 | 245 | | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
251 | 259 | | |
252 | 260 | | |
253 | 261 | | |
| |||
256 | 264 | | |
257 | 265 | | |
258 | 266 | | |
259 | | - | |
| 267 | + | |
260 | 268 | | |
261 | 269 | | |
262 | 270 | | |
0 commit comments