mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* fix(mobile): infoSheet loses content * test(mobile): refactor e2e tests Reorganise the e2e test and make them easier to maintain. The previous structure was monotlithic. One would start the history tests and would have to wait for all of them to complete. Now one can test individual features - like twap, swap, stake txs without having the run the whole flow. Each of those can be run on it’s own. They can also be run as a whole in the __suite__ - every suite is optimised to start the app once and then to run flow without uninstalling and instalilng the app again. * test(mobile): run tests on android as well * test(mobile): fix wrong mock data * fix(mobile): linting * test(mobile): make assertions android compatible * fix(mobile): prettier * test(mobile): add stake claim test * test(mobile): speed up app launch in dev mode * test(mobile): test improvements * test(mobile): unstable hooks caused app to crash There was somethign wrong with AssetsNavbar and the way that react-navigation renders it. In tests we got crashes due to different number of hooks being rendered * test(mobile): fix prettier
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
appId: ${APP_ID}
|
|
tags:
|
|
- util
|
|
---
|
|
- runScript:
|
|
file: ../../../utils/scripts/defaults.js
|
|
# ===========================================
|
|
# TWAP Order Transaction Card (Pending)
|
|
# ===========================================
|
|
# Tests clicking on a TWAP order transaction in the pending transactions list
|
|
# Can be used for expired or active TWAP orders
|
|
#
|
|
# Environment variables:
|
|
# ORDER_STATUS: Expected status of the TWAP order - "Expired", "Execution needed", or "Pending"
|
|
# Passed through to twap-order-tx.yml (which defaults to "Execution needed" if not provided)
|
|
|
|
- assertVisible:
|
|
text: '.*Twap order.*'
|
|
|
|
# Verify the token pair is visible (e.g., "COW > DAI")
|
|
- extendedWaitUntil:
|
|
visible:
|
|
text: '.*[A-Z]{2,}.*>.*[A-Z]{2,}.*'
|
|
optional: true
|
|
timeout: ${output.defaults.extendedWaitUntilTimeout}
|
|
|
|
# Tap on the TWAP order transaction text
|
|
# Note: TWAP orders may appear in "In queue" or "Conflicting transactions" sections
|
|
# Using index: 0 to select the first one found
|
|
- tapOn:
|
|
text: '.*Twap order.*'
|
|
index: 0
|
|
|
|
# Pass ORDER_STATUS to the detail test
|
|
# If ORDER_STATUS is not provided, twap-order-tx.yml will default to "Execution needed"
|
|
# For expired orders, pass ORDER_STATUS: 'Expired' from the parent flow
|
|
- runFlow:
|
|
file: ./twap-order-tx.yml
|
|
env:
|
|
ORDER_STATUS: ${ORDER_STATUS}
|
|
|
|
- tapOn:
|
|
id: 'go-back'
|