Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions maestro/helpers/close_open_sheet.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
appId: com.flipcash.app.android
---
- swipe:
direction: DOWN
- extendedWaitUntil:
visible:
id: scanner_screen
# Return to the scanner, which is always the root behind the single open sheet. Opening a
# destination inside a sheet (e.g. wallet -> token info) pushes it onto that sheet's own nav
# stack, so one dismiss only pops a layer. Press Back until the scanner is revealed: each
# Back pops the sheet's nav stack and the final one dismisses the sheet itself.
#
# Bounded (times) rather than an open while-loop so a stuck sheet can't hang CI, and each
# Back is guarded on the scanner not already showing — so it's a safe no-op on a clean home
# screen and never backs out of the app once the scanner is reached.
- repeat:
times: 5
commands:
- runFlow:
when:
notVisible:
id: scanner_screen
commands:
- pressKey: Back
- waitForAnimationToEnd:
timeout: 1500
- assertVisible:
id: scanner_screen
24 changes: 15 additions & 9 deletions maestro/open_token_info_deeplink.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
appId: com.flipcash.app.android
name: "Token Info deeplink → opens & dismisses to scanner"
tags:
- tokens
---
# A token deeplink opens the token-info screen (pushed into a sheet's nav stack over the
# scanner) and can be dismissed cleanly back to the scanner. Re-firing the same deeplink is
# a no-op (the app dedupes it), so this verifies the open + dismiss, which is the meaningful
# path.
- runFlow: subflows/login_with_deeplink.yaml
- runFlow:
file: helpers/launch_deeplink.yaml
env:

- runFlow:
file: helpers/launch_deeplink.yaml
env:
deeplink: https://app.flipcash.com/token/5APqK9YUZupKt7rRUrpYy6WV3RPuxA71ZtKJffDUMdPP
- extendedWaitUntil:
visible:
visible:
id: token_info_screen
timeout: 8000

# Dismiss the sheet back to the scanner (unwinds the sheet's nav stack, then dismisses it).
- runFlow: helpers/close_open_sheet.yaml
- pressKey: home
- runFlow:
file: helpers/launch_deeplink.yaml
env:
deeplink: https://app.flipcash.com/token/5APqK9YUZupKt7rRUrpYy6WV3RPuxA71ZtKJffDUMdPP
4 changes: 3 additions & 1 deletion maestro/subflows/pull_out_bill.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
appId: com.flipcash.app.android
---
- runFlow: ../helpers/close_open_sheet.yaml
- tapOn: Give
# The give/cash nav button's label is config-driven (GiveButtonLabel: "Give" or "Cash");
# it currently renders "Cash" (action_cash).
- tapOn: Cash
- extendedWaitUntil:
visible: Float
- extendedWaitUntil:
Expand Down
Loading