@@ -20,10 +20,10 @@ import { test } from './helpers/fixtures';
2020import { ServeWallet } from './helpers/servewallet' ;
2121import { startSimulator , completeWalletSetupFlow , cleanFakeMemoryFiles } from './helpers/simulator' ;
2222import { assertFieldsCount , clickButtonWithText } from './helpers/dom' ;
23- import { ChildProcessWithoutNullStreams } from 'child_process' ;
23+ import { ChildProcess } from 'child_process' ;
2424
2525let servewallet : ServeWallet ;
26- let simulatorProc : ChildProcessWithoutNullStreams | undefined ;
26+ let simulatorProc : ChildProcess | undefined ;
2727
2828/**
2929 * Test scenario 1:
@@ -34,9 +34,9 @@ let simulatorProc : ChildProcessWithoutNullStreams | undefined;
3434 * - Restart app (kill and restart servewallet)
3535 * - Check that accounts do not show up without simulator running.
3636 */
37- test ( 'Test #1 - No passphrase and no watch-only' , async ( { page, host, frontendPort, servewalletPort } ) => {
37+ test ( 'Test #1 - No passphrase and no watch-only' , async ( { page, host, frontendPort, servewalletPort } , testInfo ) => {
3838 await test . step ( 'Start servewallet' , async ( ) => {
39- servewallet = new ServeWallet ( page , servewalletPort , frontendPort , host , { simulator : true } ) ;
39+ servewallet = new ServeWallet ( page , servewalletPort , frontendPort , host , testInfo . title , testInfo . project . name , { simulator : true } ) ;
4040 await servewallet . start ( ) ;
4141 } ) ;
4242
@@ -46,7 +46,7 @@ test('Test #1 - No passphrase and no watch-only', async ({ page, host, frontendP
4646 throw new Error ( 'SIMULATOR_PATH environment variable not set' ) ;
4747 }
4848
49- simulatorProc = startSimulator ( simulatorPath , true ) ;
49+ simulatorProc = startSimulator ( simulatorPath , testInfo . title , testInfo . project . name , true ) ;
5050 console . log ( 'Simulator started' ) ;
5151 } ) ;
5252
@@ -88,9 +88,9 @@ test('Test #1 - No passphrase and no watch-only', async ({ page, host, frontendP
8888 * - Restart app (kill and restart servewallet)
8989 * - Check that watch-only accounts still show up (with no simulator running)
9090 */
91- test ( 'Test #2 - No passphrase - Watch-only account' , async ( { page, host, frontendPort, servewalletPort } ) => {
91+ test ( 'Test #2 - No passphrase - Watch-only account' , async ( { page, host, frontendPort, servewalletPort } , testInfo ) => {
9292 await test . step ( 'Start servewallet' , async ( ) => {
93- servewallet = new ServeWallet ( page , servewalletPort , frontendPort , host , { simulator : true } ) ;
93+ servewallet = new ServeWallet ( page , servewalletPort , frontendPort , host , testInfo . title , testInfo . project . name , { simulator : true } ) ;
9494 await servewallet . start ( ) ;
9595 } ) ;
9696
@@ -101,7 +101,7 @@ test('Test #2 - No passphrase - Watch-only account', async ({ page, host, fronte
101101 throw new Error ( 'SIMULATOR_PATH environment variable not set' ) ;
102102 }
103103
104- simulatorProc = startSimulator ( simulatorPath , true ) ;
104+ simulatorProc = startSimulator ( simulatorPath , testInfo . title , testInfo . project . name , true ) ;
105105
106106 console . log ( 'Simulator started' ) ;
107107 } ) ;
0 commit comments