(label, body)
| 1189 | } |
| 1190 | |
| 1191 | async function queryUi(label, body) { |
| 1192 | return retryHttpJson( |
| 1193 | "POST", |
| 1194 | `/api/simulators/${simulatorUDID}/action`, |
| 1195 | { |
| 1196 | action: "query", |
| 1197 | source: "native-ax", |
| 1198 | maxDepth: body.maxDepth ?? 8, |
| 1199 | ...body, |
| 1200 | }, |
| 1201 | `${label} query`, |
| 1202 | { |
| 1203 | attempts: 1, |
| 1204 | maxElapsedMs: body.maxElapsedMs ?? httpActionBudgetMs, |
| 1205 | }, |
| 1206 | ); |
| 1207 | } |
| 1208 | |
| 1209 | async function waitForUiElement(label, selector, options = {}) { |
| 1210 | return retryHttpJson( |
no test coverage detected