Repository navigation
Commit 04a3cad
committed
test(app-shell): the new-hook target test waits for the roster's labels before reading them
ObjectHooksPanel.newHookTarget-11820 awaited only the "This package"
group, then read the checkbox labels synchronously. The group is drawn
by the panel's read of this package's objects; the labels, and the
"Other objects" group, are drawn by the hook editor's own read of the
object roster. Until the roster answers, the selected object is drawn by
its bare name on purpose, so the group could be on screen while its
checkbox was still named `invoice`, and the read failed on timing alone.
Every read whose answer the roster draws now waits for it with
findByRole at the default timeout. The component is unchanged.
Claude-Session: https://claude.ai/code/session_01DBZ9bntPZ7VKyQNtJeNsgw
Co-authored-by: Claude <noreply@anthropic.com>1 parent 989b190 commit 04a3cad
2 files changed
Lines changed: 16 additions & 5 deletions
File tree
- .changeset
- packages/app-shell/src/views/studio-design
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | | - | |
88 | | - | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | | - | |
| 97 | + | |
91 | 98 | | |
92 | | - | |
93 | | - | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
0 commit comments