()
| 6840 | |
| 6841 | #[test] |
| 6842 | fn tap_agent_ref_maps_to_element_index() { |
| 6843 | let parsed = Cli::try_parse_from(["simdeck", "tap", "@e3"]).unwrap(); |
| 6844 | let Command::Tap { args, .. } = parsed.command else { |
| 6845 | panic!("expected tap command"); |
| 6846 | }; |
| 6847 | let target = parse_tap_command_args(args, None, None, None, None).unwrap(); |
| 6848 | |
| 6849 | assert_eq!( |
| 6850 | target.selector, |
| 6851 | ElementSelector { |
| 6852 | index: Some(2), |
| 6853 | ..Default::default() |
| 6854 | } |
| 6855 | ); |
| 6856 | assert_eq!(target.udid, None); |
| 6857 | } |
| 6858 | |
| 6859 | #[test] |
| 6860 | fn tap_accepts_post_action_expectation_flags() { |
nothing calls this directly
no test coverage detected