mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
update ios maestro flows for graceful FTUEs and explicit image for exif
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:56 PM
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user