Files
Daniel DimitrovandGitHub ac164e7f48 test(mobile): refactor the e2e tests (#6642)
* 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
2025-11-14 18:02:10 +01:00

92 lines
2.6 KiB
YAML

appId: ${APP_ID}
tags:
- util
---
# ===========================================
# Remove Owner Transaction
# ===========================================
- assertVisible: Transaction details
- assertVisible: Remove signer
# ===========================================
# Removed Signer Field
# ===========================================
- assertVisible: Removed signer
- assertVisible:
id: 'hash-display-name-or-address'
text: '0x[0-9a-fA-F]{4}.*[0-9a-fA-F]{4}'
# ===========================================
# Confirmations Field with Info Sheet
# ===========================================
- assertVisible: Confirmations
- assertVisible:
id: 'threshold-change-display-threshold'
text: '.*\d+.*'
# Tap on "Confirmations" text in the threshold change display (wrapped by InfoSheet)
# This is in the upper card section, different from the lower "Confirmations" that opens signers sheet
- tapOn:
text: Confirmations.*
index: 0
# Verify InfoSheet is opened with the expected info text
- assertVisible: Confirmations required for new transactions
# Dismiss the InfoSheet by swiping down
- swipe:
direction: DOWN
startPoint: '50%,50%'
endPoint: '50%,80%'
# Verify we're back to the transaction details view
- assertVisible: Transaction details
# ===========================================
# Network Display
# ===========================================
- runFlow:
file: ../../assertions/verify-tx-network.yml
# ===========================================
# Transaction Details Button
# ===========================================
- runFlow:
file: ../../assertions/verify-tx-details.yml
# ===========================================
# Common Transaction Info
# ===========================================
- runFlow:
file: ../../assertions/verify-tx-info.yml
# ===========================================
# Confirmations
# ===========================================
- runFlow:
file: ../../assertions/verify-tx-history-confirmations.yml
# ===========================================
# Test Explorer Link
# ===========================================
- runFlow:
file: ../../assertions/verify-explorer-link.yml
- assertVisible: Transaction details
# ===========================================
# Test Share Transaction Button
# ===========================================
- runFlow:
file: ../../assertions/verify-share-link.yml
- assertVisible: Transaction details
# ===========================================
# Test Transaction Details Button
# ===========================================
- runFlow:
file: ../../assertions/verify-advanced-details.yml
- assertVisible: Transaction details