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

Function batch_tap_maps_post_action_expectation

packages/server/src/main.rs:7110–7125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7108
7109 #[test]
7110 fn batch_tap_maps_post_action_expectation() {
7111 let step = batch_line_to_json_step(
7112 "tap --id com.apple.settings.screenTime --expect-id BackButton --expect-timeout-ms 2500",
7113 )
7114 .unwrap();
7115
7116 assert_eq!(step["action"], "tap");
7117 assert_eq!(step["selector"]["id"], "com.apple.settings.screenTime");
7118 assert_eq!(step["expect"]["selector"]["id"], "BackButton");
7119 assert_eq!(step["expect"]["timeoutMs"], 2500);
7120
7121 let back = batch_line_to_json_step("back --timeout-ms 3000 --no-fallback-swipe").unwrap();
7122 assert_eq!(back["action"], "back");
7123 assert_eq!(back["timeoutMs"], 3000);
7124 assert_eq!(back["fallbackSwipe"], false);
7125 }
7126
7127 #[test]
7128 fn batch_assert_maps_to_assert_action() {

Callers

nothing calls this directly

Calls 1

batch_line_to_json_stepFunction · 0.85

Tested by

no test coverage detected