File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ class TutorialBase {
179
179
console . error ( `"${ this . __templateName } " template could not be started:\n` , err ) ;
180
180
throw ( err ) ;
181
181
}
182
- await this . __page . waitFor ( waitFor ) ;
182
+ await this . __page . waitForTimeout ( waitFor ) ;
183
183
await this . takeScreenshot ( "dashboardOpenFirstTemplate_after" ) ;
184
184
return resp ;
185
185
}
@@ -197,7 +197,7 @@ class TutorialBase {
197
197
console . error ( `"${ this . __templateName } " service could not be started:\n` , err ) ;
198
198
throw ( err ) ;
199
199
}
200
- await this . __page . waitFor ( waitFor ) ;
200
+ await this . __page . waitForTimeout ( waitFor ) ;
201
201
await this . takeScreenshot ( "dashboardOpenFirstService_after" ) ;
202
202
return resp ;
203
203
}
@@ -296,7 +296,7 @@ class TutorialBase {
296
296
297
297
async retrieve ( waitAfterRetrieve = 5000 ) {
298
298
await auto . clickRetrieve ( this . __page ) ;
299
- await this . __page . waitFor ( waitAfterRetrieve ) ;
299
+ await this . __page . waitForTimeout ( waitAfterRetrieve ) ;
300
300
}
301
301
302
302
async openNodeRetrieveAndRestart ( nodePosInTree = 0 ) {
@@ -380,7 +380,7 @@ class TutorialBase {
380
380
}
381
381
382
382
async waitFor ( waitFor ) {
383
- await this . __page . waitFor ( waitFor ) ;
383
+ await this . __page . waitForTimeout ( waitFor ) ;
384
384
}
385
385
386
386
async takeScreenshot ( screenshotTitle ) {
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ async function checkDataProducedByNode(page, nFiles = 1) {
314
314
let children = [ ] ;
315
315
const minTime = 1000 ; // wait a bit longer for fetching the files
316
316
for ( let i = 0 ; i < tries && children . length === 0 ; i ++ ) {
317
- await page . waitFor ( minTime * ( i + 1 ) ) ;
317
+ await page . waitForTimeout ( minTime * ( i + 1 ) ) ;
318
318
await page . waitForSelector ( '[osparc-test-id="fileTreeItem_NodeFiles"]' ) ;
319
319
children = await utils . getFileTreeItemIDs ( page , "NodeFiles" ) ;
320
320
console . log ( i + 1 , 'try: ' , children ) ;
You can’t perform that action at this time.
0 commit comments