Commit 5d1ea82
committed
fix: add play functions to ensure Chromatic captures scrolled state
- Add waitForChatScroll play function that waits for messages to load
and scroll to complete before Chromatic takes screenshots
- Add data-testid="message-window" to scroll container in AIView
- Add data-testid="chat-message" to message wrappers for test queries
- Apply play function to ActiveWorkspaceWithChat and MarkdownTables stories
- Fix ProviderIcon lint error: remove redundant "mux-gateway" union type
(already included in ProviderName)1 parent 939ad6a commit 5d1ea82
File tree
3 files changed
+42
-1
lines changed- src/browser
- components
3 files changed
+42
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
10 | 47 | | |
11 | 48 | | |
12 | 49 | | |
| |||
1093 | 1130 | | |
1094 | 1131 | | |
1095 | 1132 | | |
| 1133 | + | |
1096 | 1134 | | |
1097 | 1135 | | |
1098 | 1136 | | |
| |||
1234 | 1272 | | |
1235 | 1273 | | |
1236 | 1274 | | |
| 1275 | + | |
1237 | 1276 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| |||
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
| 470 | + | |
469 | 471 | | |
470 | 472 | | |
471 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments