@@ -83,7 +83,9 @@ d('Profile and Contacts', () => {
8383 await element ( by . id ( 'ProfileAddLink' ) ) . tap ( ) ;
8484
8585 await element ( by . id ( 'LinkLabelInput' ) ) . typeText ( 'LINK-LABEL' ) ;
86+ await sleep ( 300 ) ; // wait for keyboard
8687 await element ( by . id ( 'LinkValueInput' ) ) . typeText ( 'link-value' ) ;
88+ await sleep ( 300 ) ; // wait for keyboard
8789 await element ( by . id ( 'SaveLink' ) ) . tap ( ) ;
8890 await waitFor ( element ( by . id ( 'SaveLink' ) ) ) . not . toBeVisible ( ) ;
8991 await expect ( element ( by . text ( 'LINK-LABEL' ) ) ) . toExist ( ) ;
@@ -137,6 +139,13 @@ d('Profile and Contacts', () => {
137139 . withTimeout ( 30000 ) ;
138140 await expect ( element ( by . text ( satoshi . name ) ) ) . toExist ( ) ;
139141 await expect ( element ( by . text ( satoshi . bio ) ) ) . toExist ( ) ;
142+
143+ // Android: keyboard is not dismissed after adding contact in e2e
144+ if ( device . getPlatform ( ) === 'android' ) {
145+ await element ( by . id ( 'NameInput' ) ) . tapReturnKey ( ) ;
146+ await sleep ( 300 ) ; // wait for keyboard to hide
147+ }
148+
140149 await element ( by . id ( 'SaveContactButton' ) ) . tap ( ) ;
141150 await expect ( element ( by . text ( 'WEBSITE' ) ) ) . toExist ( ) ;
142151 await expect ( element ( by . text ( satoshi . website ) ) ) . toExist ( ) ;
@@ -152,6 +161,14 @@ d('Profile and Contacts', () => {
152161 . withTimeout ( 30000 ) ;
153162 await expect ( element ( by . text ( hal . name1 ) ) ) . toExist ( ) ;
154163 await element ( by . id ( 'NameInput' ) ) . replaceText ( hal . name2 ) ;
164+ await sleep ( 300 ) ; // wait for keyboard to hide
165+
166+ // Android: keyboard is not dismissed after adding contact in e2e
167+ if ( device . getPlatform ( ) === 'android' ) {
168+ await element ( by . id ( 'NameInput' ) ) . tapReturnKey ( ) ;
169+ await sleep ( 300 ) ; // wait for keyboard to hide
170+ }
171+
155172 await element ( by . id ( 'SaveContactButton' ) ) . tap ( ) ;
156173 await expect ( element ( by . text ( hal . name2 . toUpperCase ( ) ) ) ) . toExist ( ) ;
157174 await element ( by . id ( 'NavigationClose' ) ) . tap ( ) ;
0 commit comments