@@ -94,22 +94,22 @@ test('Verify the Profiler Button panel when toggle was switched to ON and user p
94
94
} ) ;
95
95
test ( 'Verify that when user see the toggle is OFF - Profiler logs are not being saved' , async t => {
96
96
// Remember the number of files in Temp
97
- const numberOfDownloadFiles = await databasesActions . findFileByFileStarts ( fileDownloadPath , fileStarts ) ;
97
+ const numberOfDownloadFiles = await databasesActions . getFileCount ( fileDownloadPath , fileStarts ) ;
98
98
99
99
// Start Monitor without Save logs
100
100
await browserPage . Profiler . startMonitor ( ) ;
101
101
await t . wait ( 3000 ) ;
102
102
// 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' ) ;
104
104
} ) ;
105
105
test ( 'Verify that when user see the toggle is ON - Profiler logs are being saved' , async t => {
106
106
// Remember the number of files in Temp
107
- const numberOfDownloadFiles = await databasesActions . findFileByFileStarts ( fileDownloadPath , fileStarts ) ;
107
+ const numberOfDownloadFiles = await databasesActions . getFileCount ( fileDownloadPath , fileStarts ) ;
108
108
109
109
// Start Monitor with Save logs
110
110
await browserPage . Profiler . startMonitorWithSaveLog ( ) ;
111
111
// Download logs and check result
112
112
await browserPage . Profiler . stopMonitor ( ) ;
113
113
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 } ) ;
115
115
} ) ;
0 commit comments