(snapshot)
| 1452 | } |
| 1453 | |
| 1454 | function keyboardTipPromptActions(snapshot) { |
| 1455 | const actions = [ |
| 1456 | { |
| 1457 | label: "key enter", |
| 1458 | run: () => |
| 1459 | simdeckJson(["key", simulatorUDID, "enter"], { timeoutMs: 60_000 }), |
| 1460 | }, |
| 1461 | { |
| 1462 | label: "tap keyboard tip Continue by label", |
| 1463 | run: () => |
| 1464 | simdeckJson( |
| 1465 | [ |
| 1466 | "tap", |
| 1467 | simulatorUDID, |
| 1468 | "--label", |
| 1469 | "Continue", |
| 1470 | "--wait-timeout-ms", |
| 1471 | "5000", |
| 1472 | ], |
| 1473 | { timeoutMs: 60_000 }, |
| 1474 | ), |
| 1475 | }, |
| 1476 | ]; |
| 1477 | for (const point of buttonCandidatePoints(snapshot, "Continue")) { |
| 1478 | actions.push({ |
| 1479 | label: `tap keyboard tip Continue at ${point.x},${point.y}`, |
| 1480 | run: () => |
| 1481 | simdeckJson( |
| 1482 | [ |
| 1483 | "tap", |
| 1484 | simulatorUDID, |
| 1485 | String(point.x), |
| 1486 | String(point.y), |
| 1487 | "--duration-ms", |
| 1488 | "80", |
| 1489 | ], |
| 1490 | { timeoutMs: 60_000 }, |
| 1491 | ), |
| 1492 | }); |
| 1493 | } |
| 1494 | return actions; |
| 1495 | } |
| 1496 | |
| 1497 | function openButtonPoint(snapshot) { |
| 1498 | return buttonPoint(snapshot, "Open"); |
no test coverage detected