()
| 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() { |
nothing calls this directly
no test coverage detected