(
ink: MountedInkProbe | undefined,
predicate: (rows: string[]) => boolean,
options?: {
readonly timeoutMs?: number
readonly label?: string
},
)
| 230 | } |
| 231 | |
| 232 | export async function waitForMountedVisibleRows( |
| 233 | ink: MountedInkProbe | undefined, |
| 234 | predicate: (rows: string[]) => boolean, |
| 235 | options?: { |
| 236 | readonly timeoutMs?: number |
| 237 | readonly label?: string |
| 238 | }, |
| 239 | ): Promise<string[]> { |
| 240 | const screenText = await waitForMountedScreenText( |
| 241 | ink, |
| 242 | text => predicate(readVisibleRows(text)), |
| 243 | options, |
| 244 | ) |
| 245 | return readVisibleRows(screenText) |
| 246 | } |