MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / runHardwareButtonControls

Function runHardwareButtonControls

scripts/integration/cli.mjs:590–626  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588}
589
590async 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
628async function runRestControls() {
629 await measuredStep(

Callers 1

mainFunction · 0.85

Calls 3

cliArgsFunction · 0.85
measuredStepFunction · 0.70
simdeckJsonFunction · 0.70

Tested by

no test coverage detected