99# 2. Validates first token activation warning - "Need ETH"
1010
1111# TODO: validate "delete token" action (need targeting for edit icon)
12- # TODO: remove extra "A" and delete for iOS autocomplete
13-
1412
1513appId : ${MAESTRO_APP_ID}
1614env :
@@ -46,22 +44,27 @@ tags:
4644- longPressOn : ETH
4745- tapOn : " .*Add / Edit Tokens"
4846
47+ # Test search
48+ - tapOn : Search Tokens
49+ - inputText : " 1INCH"
50+ - pressKey : Enter
51+
4952# First time token warning modal
50- - tapOn : " 1INCH.*"
53+ - tapOn :
54+ text : " 1INCH.*"
55+ index : 2
5156- assertVisible : " ETH Needed to Send Tokens"
5257- tapOn : " ETH is required to pay the mining fees when sending tokens. The associated ETH wallet must contain a sufficient.*"
5358- tapOn : " Please confirm your understanding below:"
5459- tapOn : " I understand and agree to the terms"
5560- tapOn : " Confirm & Finish"
5661
62+ - tapOn :
63+ id : " undefined.clearIcon"
64+
5765- runFlow :
5866 label : " Add custom token"
5967 commands :
60- # Test search
61- - tapOn : Search Tokens
62- # Test custom token - details for $UNI token
63- - tapOn :
64- id : " undefined.clearIcon"
6568 - tapOn : Add Custom
6669 - assertVisible : Add Token
6770 - assertVisible : Contract Address # Different for some networks
8487 optional : true
8588 - tapOn :
8689 text : " Contract Address"
87- - inputText : ${UNI_CONTRACT_ADDRESS}
88- # Fix: iOS is inconsistent - may type too fast on maestro
89- - runFlow :
90- when :
91- platform : iOS
92- commands :
93- - inputText : " A"
94- - pressKey : Backspace
90+ # Enter separately to reduce errors from maestro typing too fast
91+ - inputText : ${UNI_CONTRACT_ADDRESS.slice(0, -1)}
92+ - inputText : ${UNI_CONTRACT_ADDRESS.slice(-1)}
9593 # Ensure autocomplete is working
9694 - pressKey : Enter # Drop keyboard
9795 - extendedWaitUntil :
@@ -109,14 +107,9 @@ tags:
109107 index : 0
110108 - tapOn :
111109 text : " Contract Address"
112- - inputText : ${MOG_CONTRACT_ADDRESS}
113- # Fix: iOS is inconsistent - may type too fast on maestro
114- - runFlow :
115- when :
116- platform : iOS
117- commands :
118- - inputText : " A"
119- - pressKey : Backspace
110+ # Enter separately to reduce errors from maestro typing too fast
111+ - inputText : ${MOG_CONTRACT_ADDRESS.slice(0, -1)}
112+ - inputText : ${MOG_CONTRACT_ADDRESS.slice(-1)}
120113 # Ensure autocomplete is working
121114 - pressKey : Enter # Drop keyboard
122115 - extendedWaitUntil :
@@ -156,8 +149,13 @@ tags:
156149 env :
157150 USERNAME : ${output.newAccountUsername}
158151 PASSWORD : ${output.newAccountPassword}
152+ # Dismiss option to save password to keychain (iOS)
153+ - tapOn :
154+ text : Not Now
155+ optional : true
159156- runFlow :
160157 file : ../common/dismiss-modals.yaml
158+
161159- tapOn : Assets
162160- scrollUntilVisible :
163161 element : " Mog"
0 commit comments