()
| 588 | } |
| 589 | |
| 590 | async function runHardwareButtonControls() { |
| 591 | await measuredStep( |
| 592 | "CLI hardware button batch", |
| 593 | async () => { |
| 594 | const batch = simdeckJson( |
| 595 | cliArgs([ |
| 596 | "batch", |
| 597 | simulatorUDID, |
| 598 | "--step", |
| 599 | "button home", |
| 600 | "--step", |
| 601 | "button lock --duration-ms 50", |
| 602 | "--step", |
| 603 | "button lock --duration-ms 50", |
| 604 | "--step", |
| 605 | "button side-button --duration-ms 50", |
| 606 | "--step", |
| 607 | "button side-button --duration-ms 50", |
| 608 | "--step", |
| 609 | "button siri --duration-ms 50", |
| 610 | "--step", |
| 611 | "home", |
| 612 | "--step", |
| 613 | "button apple-pay --duration-ms 50", |
| 614 | "--step", |
| 615 | "home", |
| 616 | ]), |
| 617 | ); |
| 618 | if (batch.ok !== true || batch.failureCount !== 0) { |
| 619 | throw new Error( |
| 620 | `hardware button batch failed: ${JSON.stringify(batch)}`, |
| 621 | ); |
| 622 | } |
| 623 | }, |
| 624 | { phase: phaseCommandSmoke }, |
| 625 | ); |
| 626 | } |
| 627 | |
| 628 | async function runRestControls() { |
| 629 | await measuredStep( |
no test coverage detected