update ios maestro flows for graceful FTUEs and explicit image for exif

This commit is contained in:
Ryan Stelly
2025-10-11 13:53:18 -05:00
parent e2f18df60c
commit 1551740e2a
2 changed files with 43 additions and 19 deletions

View File

@@ -2,14 +2,23 @@ appId: org.inaturalist.iNaturalistMobile
---
- launchApp
- extendedWaitUntil:
visible:
id: "log-in-to-iNaturalist-text-no-observations"
visible: iNaturalist
timeout: 10000
# dismiss iNaturalist FTUE
- runFlow:
when:
visible: Continue
commands:
- tapOn: Close
- assertVisible: Use iNaturalist to identify any living thing
- launchApp:
appId: com.apple.mobilesafari
- tapOn: "Address"
- tapOn: Address
- inputText: "https://www.inaturalist.org/users/sign_in?confirmed=true"
- pressKey: Enter
- assertVisible: .*Open in the iNaturalistReactNative app.*
- assertVisible: .*Open in the iNaturalist app.*
- tapOn: OPEN
- assertVisible: "Your email is confirmed! Please log in to continue."
- assertVisible: Your email is confirmed! Please log in to continue.

View File

@@ -1,18 +1,33 @@
appId: org.inaturalist.iNaturalistMobile
---
# Download sample image with exif and stable public link
- launchApp:
appId: com.apple.mobilesafari
- tapOn: Address
- inputText: "https://raw.githubusercontent.com/ianare/exif-samples/refs/heads/master/jpg/Canon_40D.jpg"
- pressKey: Enter
- tapOn: Share
- scrollUntilVisible:
element: Save Image
- tapOn: Save Image
# Open iOS Photos app and share into iNaturalist app
- launchApp:
appId: com.apple.mobileslideshow # iOS Photos app
- tapOn: "Albums"
- tapOn: "Recents"
- tapOn: "Photo, 13. March 2011, 01:17"
- tapOn: "Share"
- tapOn: "iNaturalistReactNative"
- extendedWaitUntil:
visible: "Post"
timeout: 10000
- tapOn: "Post"
- extendedWaitUntil:
visible: "New Observation"
timeout: 10000
# Assert for timestamp which means EXIF parsing was correct
- assertVisible: .*4:17:25.*
# dismiss iOS Photos FTUE
- runFlow:
when:
visible: Continue
commands:
- tapOn: Continue
- tapOn: Select # we can _see_ our photo in the gallery, but can't target it w/o focusing "Select"
- tapOn: Photo, May 30, 2008, 3:56PM
- tapOn: Share
- tapOn: iNaturalist
- tapOn: Post
- scrollUntilVisible: # For clarify, center the "OBSERVED AT" header which should have the time right after
centerElement: true
element: OBSERVED AT
- assertVisible: 5/30/08 8:56 PM CDT