@@ -94,22 +94,22 @@ test('Verify the Profiler Button panel when toggle was switched to ON and user p
9494} ) ;
9595test ( 'Verify that when user see the toggle is OFF - Profiler logs are not being saved' , async t => {
9696 // Remember the number of files in Temp
97- const numberOfDownloadFiles = await databasesActions . findFileByFileStarts ( fileDownloadPath , fileStarts ) ;
97+ const numberOfDownloadFiles = await databasesActions . getFileCount ( fileDownloadPath , fileStarts ) ;
9898
9999 // Start Monitor without Save logs
100100 await browserPage . Profiler . startMonitor ( ) ;
101101 await t . wait ( 3000 ) ;
102102 // Check the download files
103- await t . expect ( await databasesActions . findFileByFileStarts ( fileDownloadPath , fileStarts ) ) . eql ( numberOfDownloadFiles , 'The Profiler logs are saved' ) ;
103+ await t . expect ( await databasesActions . getFileCount ( fileDownloadPath , fileStarts ) ) . eql ( numberOfDownloadFiles , 'The Profiler logs are saved' ) ;
104104} ) ;
105105test ( 'Verify that when user see the toggle is ON - Profiler logs are being saved' , async t => {
106106 // Remember the number of files in Temp
107- const numberOfDownloadFiles = await databasesActions . findFileByFileStarts ( fileDownloadPath , fileStarts ) ;
107+ const numberOfDownloadFiles = await databasesActions . getFileCount ( fileDownloadPath , fileStarts ) ;
108108
109109 // Start Monitor with Save logs
110110 await browserPage . Profiler . startMonitorWithSaveLog ( ) ;
111111 // Download logs and check result
112112 await browserPage . Profiler . stopMonitor ( ) ;
113113 await t . click ( browserPage . Profiler . downloadLogButton ) ;
114- await t . expect ( await databasesActions . findFileByFileStarts ( fileDownloadPath , fileStarts ) ) . gt ( numberOfDownloadFiles , 'The Profiler logs not saved' , { timeout : 5000 } ) ;
114+ await t . expect ( await databasesActions . getFileCount ( fileDownloadPath , fileStarts ) ) . gt ( numberOfDownloadFiles , 'The Profiler logs not saved' , { timeout : 5000 } ) ;
115115} ) ;
0 commit comments