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

101 lines
2.7 KiB
YAML

appId: ${APP_ID}
tags:
- util
---
# ===========================================
# Batch Transaction Detail
# ===========================================
# Batch transactions (MultiSend) are displayed as contract interactions
- assertVisible: Transaction details
- assertVisible: Batch
# Batch transactions show action count (e.g., "2 Actions")
- assertVisible:
id: 'history-transaction-header'
containsDescendants:
- text: '.*\d+\s+Actions.*'
- assertVisible:
id: 'history-contract-container'
containsDescendants:
- id: 'history-contract-call-badge'
containsDescendants:
- text: '.*${METHOD_NAME}.*'
# Contract information
- assertVisible: Contract
- assertVisible:
id: 'history-contract-information'
containsDescendants:
- id: 'hash-display-name-or-address'
text: '.*${CONTRACT_NAME}.*'
# Network display (custom format in HistoryContract)
- assertVisible: Network
# ===========================================
# Transaction Details Button
# ===========================================
- runFlow:
file: ../../assertions/verify-tx-details.yml
# ===========================================
# Common Transaction Info
# ===========================================
- runFlow:
file: ../../assertions/verify-tx-info.yml
# ===========================================
# Actions Section
# ===========================================
# Verify Actions row is visible with action count
- assertVisible:
id: 'actions-row'
containsDescendants:
- text: 'Actions'
# Click on Actions to view the actions list
- tapOn:
id: 'actions-row'
# Test the actions list view
- runFlow:
file: ../../assertions/verify-actions-list.yml
# Go back to transaction details from actions list
- tapOn:
id: 'go-back'
# Verify we're back at the transaction details
- assertVisible: Transaction details
# ===========================================
# 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