(page: Page, text: string)
| 173 | } |
| 174 | |
| 175 | async function sendMessage(page: Page, text: string): Promise<void> { |
| 176 | const input = page.getByRole("textbox", { |
| 177 | name: /Message Claude|Edit your last message/, |
| 178 | }); |
| 179 | await input.waitFor({ state: "visible", timeout: 60_000 }); |
| 180 | await input.fill(text); |
| 181 | await page.keyboard.press("Enter"); |
| 182 | } |
| 183 | |
| 184 | // Wait for the completed assistant row, not just the first visible mock prefix. |
| 185 | // The earlier repro only waited for text to start appearing, which exercised an |