Commit 462e200
committed
fix(showcase/harness): assert on actual DOM signals, not unreleased testids
Six probe-side fixes landing five additional D5 flips on the
langgraph-python column. None of the fixes touch demo or runtime
code — just the harness-side selectors / signal predicates so each
probe matches what the published langgraph-python image actually
renders today.
Per-probe changes:
- d5-tool-rendering-default-catchall: add a fallback path that
scans copilot-assistant-message bubbles for the literal tool name
+ a 'done'/'running' status label, alongside the strict testid
contract added in unreleased commit ba60df5. The strict path
re-engages once @copilotkit/react-core ships a release with the
testid; until then the bubble-text scan is the only stable hook
on 1.56.5.
- d5-reasoning-display: the published built-in
CopilotChatReasoningMessage carries no testid. Accept the verbatim
'Thought for' / 'Thinking…' header text that the slot emits, in
addition to the four pre-existing testid selectors used by the
reasoning-custom override.
- d5-gen-ui-headless-complete: the SuggestionBar renders
agent-generated chip phrasing alternately with the static
useConfigureSuggestions titles. Switch from clicking
'aria-label="Suggestion: <Title>"' to clicking by aria-label
substring with a per-chip alias list (e.g. ['stock', 'aapl'])
that matches BOTH forms. Selector also moves from a custom
text-walk to a CSS attribute-substring selector with the 'i'
modifier — self-contained, no dynamic-code-eval.
- d5-gen-ui-interrupt: widen the post-pick assertion to accept any
of (a) the 'time-picker-picked' testid, (b) the visible 'Booked'
badge text, or (c) the agent's 'scheduled / confirmed' resume
continuation. The picked-state Card unmounts as soon as
langgraph resumes after resolve, so a 5s testid wait races the
unmount; the OR catches whichever signal lands first.
- _beautiful-chat-shared (toggle-theme): two-track signal — pass on
EITHER the html.dark class flipping from its initial reading OR
the visible 'Theme toggled' assistant content rendering. The
class-flip is the strongest signal but useFrontendTool's dispatch
occasionally drops the handler call without dropping the agent's
follow-up content message; track (b) catches the 'tool semantics
reached the UI' state in the meantime.
- _beautiful-chat-shared (search-flights): swap the literal
'United Airlines' wait for the short brand label 'United', which
appears in BOTH the FlightCard a2ui surface's render (when it
paints) and the assistant's '49 / 89' narration. The price
literals ($349 / $289) stay as the canonical 2-flight
fingerprint.
Conversation-runner adjustment:
- Reverse the partial-fix from PR CopilotKit#4724: try chat-input cascade
resolution AT BOOT first (and read baseline at boot too); only
defer to post-preFill on auth-shape demos where the cascade
fails. Without this, demos where preFill itself fires the
message (chip clicks in headless-complete) had baseline read
AFTER the assistant bubble already appeared and the settle
waited indefinitely for further growth that never came.1 parent 1d8d1b0 commit 462e200
6 files changed
Lines changed: 292 additions & 80 deletions
File tree
- showcase/harness/src/probes
- helpers
- scripts
Lines changed: 28 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
282 | 286 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
289 | 306 | | |
290 | 307 | | |
291 | 308 | | |
| |||
Lines changed: 88 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
211 | 225 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
242 | 274 | | |
243 | 275 | | |
244 | 276 | | |
245 | 277 | | |
246 | 278 | | |
247 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
248 | 283 | | |
249 | 284 | | |
250 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
251 | 293 | | |
252 | 294 | | |
253 | 295 | | |
| |||
256 | 298 | | |
257 | 299 | | |
258 | 300 | | |
259 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
260 | 305 | | |
261 | 306 | | |
262 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
263 | 315 | | |
264 | 316 | | |
265 | 317 | | |
| |||
270 | 322 | | |
271 | 323 | | |
272 | 324 | | |
273 | | - | |
| 325 | + | |
274 | 326 | | |
275 | 327 | | |
276 | 328 | | |
277 | 329 | | |
278 | | - | |
| 330 | + | |
279 | 331 | | |
280 | 332 | | |
281 | 333 | | |
| |||
331 | 383 | | |
332 | 384 | | |
333 | 385 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
337 | 399 | | |
338 | 400 | | |
339 | 401 | | |
340 | 402 | | |
341 | 403 | | |
342 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
343 | 407 | | |
344 | 408 | | |
345 | 409 | | |
| |||
Lines changed: 71 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
48 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
54 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
55 | 70 | | |
56 | 71 | | |
57 | 72 | | |
58 | 73 | | |
59 | 74 | | |
60 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
66 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
67 | 86 | | |
68 | 87 | | |
69 | 88 | | |
| |||
73 | 92 | | |
74 | 93 | | |
75 | 94 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
83 | 104 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
90 | 114 | | |
91 | 115 | | |
92 | | - | |
| 116 | + | |
93 | 117 | | |
94 | 118 | | |
95 | 119 | | |
96 | 120 | | |
97 | 121 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
101 | 145 | | |
102 | 146 | | |
103 | 147 | | |
| |||
142 | 186 | | |
143 | 187 | | |
144 | 188 | | |
145 | | - | |
| 189 | + | |
146 | 190 | | |
147 | | - | |
| 191 | + | |
148 | 192 | | |
149 | 193 | | |
150 | 194 | | |
| |||
159 | 203 | | |
160 | 204 | | |
161 | 205 | | |
162 | | - | |
| 206 | + | |
163 | 207 | | |
164 | 208 | | |
165 | 209 | | |
| |||
169 | 213 | | |
170 | 214 | | |
171 | 215 | | |
172 | | - | |
| 216 | + | |
173 | 217 | | |
174 | 218 | | |
175 | 219 | | |
| |||
0 commit comments