This guide contains manual quality assurance tests to make sure all commands are functional on release.
Run each step from your terminal with a booted iOS simulator.
Note: This test case was written using iOS 17.2 and the native Photos app. It may need to be adjusted for other iOS versions or Photos app changes.
- Open the native Photos app in the iOS simulator.
- Run
ios-simulator-cli get-booted-sim-idto get the UDID of the booted simulator. - Run
ios-simulator-cli record-videoto start recording. - Run
ios-simulator-cli ui describe-allto make sure we are on the All Photos tab. - Run
ios-simulator-cli ui find-element --search "Search" --type Buttonto find the Search tab button. - Run
ios-simulator-cli ui describe-point --x <x> --y <y>using coordinates from the find-element result. - Run
ios-simulator-cli ui tap --x <x> --y <y>to tap the Search tab button. - Tap the search text input with
ios-simulator-cli ui tap. - Run
ios-simulator-cli ui type "Photos". - Run
ios-simulator-cli ui describe-allto find the first photo result. - Run
ios-simulator-cli ui describe-pointon the first photo result coordinates. - Run
ios-simulator-cli ui tapon the first photo result. - Run
ios-simulator-cli ui swipe --x-start 200 --y-start 400 --x-end 200 --y-end 700to dismiss the photo. - Run
ios-simulator-cli ui describe-allto confirm we are back on the All Photos tab. - Run
ios-simulator-cli screenshot --output photos-test.png. - Run
ios-simulator-cli ui view --output photos-view.jpg. - Run
ios-simulator-cli stop-recording.