Repository navigation
Commit b192892
committed
test(plugin-chatbot): the pending-count pulse pin waits for the count render, not for the button
The draft card draws its 发布 button before the first fetchPendingDraftCount
read answers; the count lands on a later render. Both tests read the count
with a one-shot toHaveTextContent right after findByTestId, which resolves on
the button alone, so under load the check could run before that render and
read 发布 instead of 发布 (2) — the merge-queue ejections' signature. The
pin now waits for the render that carries the count. Product code unchanged.
Claude-Session: https://claude.ai/code/session_01J8VVAkq9LgnKiBeyJBZqSp
Co-authored-by: Claude <noreply@anthropic.com>1 parent f6ffd72 commit b192892
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
90 | 100 | | |
91 | | - | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
116 | | - | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
| |||
0 commit comments