Repository navigation
Commit a9062bb
test(app-shell): await the flow label in the canvas-chip header test (#38171)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoAoNwrZVJoUEFfvMURpRPKJ)_
Fixes #37822
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 用户无感:只改一条自动化测试,产品界面不变。
- 让流程画布标题测试不再偶发失败(测试在标题加载完成前就去读文字)。
- 出错只会让这条测试误报,可直接撤回。
- 要你做什么:无。
## What changes
`StudioDesignSurface.flowCanvasChip-11665.test.tsx` only. The canvas
chip prints the API name until the flow loads (`flowTitle = current ?
... : flowName`), so the synchronous label and header-text reads after
`caption()` raced the load. They now sit in `waitFor`. The fixture gains
a `server.gate` that holds `list`/`layered`; a new case proves the chip
is the API-name placeholder while held and the label after release; the
API-name fallback case releases the gate and waits for `auto-flow-meta`
so it no longer passes on the placeholder.
## Tests
- File: 5/5 pass; 20 consecutive runs: 20 ok.
- Ablation (header prints API name, `flowTitle = flowName`, reverted):
zh, en and the new late-load case go red; the API-name case stays green
by design (it is the fallback).
- Old synchronous read vs late load: the new case asserts the
placeholder while held, which is what the old sync assertion would have
read.
## Acceptance notes
No changeset: test file ships in no package. Header text reads (zh hint,
en 'Visual orchestration') also sat synchronously; now awaited.
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>1 parent 9db1dc8 commit a9062bb
1 file changed
Lines changed: 37 additions & 9 deletions
File tree
- ui/packages/app-shell/src/views/studio-design
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | | - | |
54 | | - | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
164 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
170 | | - | |
| 177 | + | |
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
| |||
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
183 | 190 | | |
184 | 191 | | |
185 | 192 | | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
189 | 201 | | |
190 | 202 | | |
| 203 | + | |
| 204 | + | |
191 | 205 | | |
192 | 206 | | |
193 | 207 | | |
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
197 | 225 | | |
198 | 226 | | |
199 | 227 | | |
| |||
0 commit comments