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
129 lines
3.4 KiB
YAML
129 lines
3.4 KiB
YAML
appId: ${APP_ID}
|
|
tags:
|
|
- util
|
|
---
|
|
# ===========================================
|
|
# Swap Order Transaction
|
|
# ===========================================
|
|
- assertVisible: Transaction details
|
|
|
|
# Verify swap order container is visible
|
|
- assertVisible:
|
|
id: 'history-swap-order-container'
|
|
|
|
# ===========================================
|
|
# Swap Header - Sell and Receive Sections
|
|
# ===========================================
|
|
- assertVisible:
|
|
id: 'history-swap-order-header'
|
|
|
|
# Verify sell container and amount
|
|
- assertVisible:
|
|
id: 'swap-header-sell-container'
|
|
- assertVisible: Sell
|
|
- assertVisible:
|
|
id: 'swap-header-sell-amount'
|
|
text: '.*\d+.*[A-Z]{2,}.*'
|
|
|
|
# Verify receive container and amount
|
|
- assertVisible:
|
|
id: 'swap-header-receive-container'
|
|
- assertVisible: 'For at least'
|
|
- assertVisible:
|
|
id: 'swap-header-receive-amount'
|
|
text: '.*\d+.*[A-Z]{2,}.*'
|
|
|
|
# ===========================================
|
|
# Swap Order Details Section
|
|
# ===========================================
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
|
|
# Execution price row (scoped to details section)
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: 'Execution price'
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: '.*1 [A-Z]{2,} = .*\d+.*[A-Z]{2,}.*'
|
|
|
|
# Order ID row (scoped to details section)
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: 'Order ID'
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: '0x[0-9a-fA-F]{4}.*'
|
|
|
|
# Network row (scoped to details section)
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: 'Network'
|
|
|
|
# Status row (scoped to details section)
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: 'Status'
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: '.*Filled.*'
|
|
|
|
# Total fees row (scoped to details section)
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: 'Total fees'
|
|
- assertVisible:
|
|
id: 'history-swap-order-details'
|
|
containsDescendants:
|
|
- text: '.*\d+.*[A-Z]{2,}.*'
|
|
|
|
# ===========================================
|
|
# 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
|