@@ -3,7 +3,7 @@ import http from 'http';
3
3
4
4
import { conditionalDescribe } from '@suite-common/test-utils' ;
5
5
import TrezorConnect from '@trezor/connect-mobile' ;
6
- import { TrezorUserEnvLink } from '@trezor/trezor-user-env-link' ;
6
+ import { MNEMONICS , TrezorUserEnvLink } from '@trezor/trezor-user-env-link' ;
7
7
8
8
import { onAlertSheet } from '../pageObjects/alertSheetActions' ;
9
9
import { onCoinEnablingInit } from '../pageObjects/coinEnablingActions' ;
@@ -24,7 +24,7 @@ const SERVER_URL = `http://localhost:${SERVER_PORT}`;
24
24
let server : http . Server | undefined ;
25
25
26
26
const openUriScheme = ( url : string , platformToOpen : 'android' ) => {
27
- const command = `npx uri-scheme open '${ url . replace ( / ' / g, '' ) } ' --${ platformToOpen } ` ;
27
+ const command = `npx uri-scheme open '${ url . replace ( / ' / g, '%27 ' ) } ' --${ platformToOpen } --raw ` ;
28
28
29
29
exec ( command , ( err , stdout , stderr ) => {
30
30
if ( err ) {
@@ -83,6 +83,7 @@ conditionalDescribe(device.getPlatform() === 'android', 'Deeplink connect popup.
83
83
} ) ;
84
84
85
85
beforeEach ( async ( ) => {
86
+ await prepareTrezorEmulator ( MNEMONICS . mnemonic_12 ) ;
86
87
await restartApp ( ) ;
87
88
88
89
await device . reverseTcpPort ( SERVER_PORT ) ;
@@ -124,14 +125,15 @@ conditionalDescribe(device.getPlatform() === 'android', 'Deeplink connect popup.
124
125
const expectedResponse = {
125
126
id : 1 ,
126
127
payload : {
127
- path : [ 49 , 0 , 0 , 0 , 0 ] ,
128
- serializedPath : ' m/49/0/0 /0/0' ,
129
- address : '3J7UQSLAaFh1nkUomVdm8ArifPEvYfNr1o ' ,
128
+ path : [ 2147483697 , 2147483648 , 2147483648 , 0 , 0 ] ,
129
+ serializedPath : " m/49'/0'/0' /0/0" ,
130
+ address : '3AnYTd2FGxJLNKL1AzxfW3FJMntp9D2KKX ' ,
130
131
} ,
131
132
success : true ,
132
133
} ;
133
134
134
135
if ( JSON . stringify ( response ) !== JSON . stringify ( expectedResponse ) ) {
136
+ console . error ( 'Received:' , response ) ;
135
137
throw new Error ( 'Result does not match expected.' ) ;
136
138
}
137
139
} ) ;
0 commit comments