Files
Daniel DimitrovandGitHub 69577fc3b2 tests(mobile): fix failing e2e tests (#7247)
* fix(mobile): e2e state preservation test

* fix(mobile): failing bridge unknown network test

* fix(mobile): e2e test batch-malicious failing

* fix(mobile): e2e settings-change-fallback-handler test

* fix(mobile): e2e pending brindge test

* fix(mobile): e2e test view tokens and nft failing

* fix(mobile): e2e test import signing
2026-02-23 17:52:35 +01:00

82 lines
2.3 KiB
YAML

appId: ${APP_ID}
tags:
- transactions
- pending
- safe-shield
---
# ===========================================
# SafeShield: Batch (Malicious - 3 actions multiSend)
# ===========================================
# Safe: 0x65e1Ff7e0901055B3bea7D8b3AF457a659714013 (Polygon)
# Expected widget: Risk detected (CRITICAL)
# - Unverified contract (INFO)
# - Malicious threat detected (CRITICAL)
# - Balance change: No balance change detected (requires scroll)
# - Risk disclaimer required
# - Sheet has "Show all" to expand unverified contract address
- runFlow:
file: ../../../../utils/setup/app-start.yml
- tapOn:
id: 'e2eSafeShieldSafe'
- assertVisible:
id: 'pending-tx-list'
- scrollUntilVisible:
element:
text: '.*3 actions.*'
centerElement: true
- runFlow:
file: ../../../../utils/components/pending-tx/tap-tx-card.yml
env:
WAIT_FOR: '.*3 actions.*'
TAP_TEXT: '.*3 actions.*'
- assertVisible: 'Confirm transaction'
# ===========================================
# SafeShield Widget
# ===========================================
- runFlow:
file: ../../../../utils/assertions/verify-safe-shield-widget.yml
env:
WIDGET_HEADER: 'Risk detected'
LABEL_1: 'Unverified contract'
LABEL_2: 'Malicious threat detected'
VERIFY_DISCLAIMER: 'true'
# ===========================================
# Balance Change Block (requires scroll)
# ===========================================
- scroll
- runFlow:
file: ../../../../utils/assertions/verify-balance-change.yml
env:
NO_CHANGE: 'true'
# ===========================================
# SafeShield Details Sheet
# ===========================================
# Scroll up to make widget header visible
- swipe:
direction: UP
- runFlow:
file: ../../../../utils/assertions/verify-safe-shield-sheet.yml
env:
TAP_TO_OPEN: 'Risk detected'
HEADER: 'RISK DETECTED'
LABEL_1: 'Unverified contract'
DESCRIPTION_1: '.*contracts are not verified yet.*'
EXPAND_SHOW_ALL: 'true'
EXPANDED_ADDRESS: '.*0xA0b86991.*'
LABEL_2: 'Malicious threat detected'
DESCRIPTION_2: '.*known malicious address.*'
DESCRIPTION_2_2: '.*recorded malicious activity.*'
# Verify back on Confirm transaction screen
- assertVisible: 'Confirm transaction'