File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,11 @@ async function runTutorial() {
4242
4343 // inside the iFrame, open the first notebook
4444 const notebookCBSelector = '#notebook_list > div:nth-child(2) > div > input[type=checkbox]' ;
45- await utils . waitAndClick ( nbIframe , notebookCBSelector )
45+ await utils . waitAndClick ( nbIframe , notebookCBSelector ) ;
4646 const notebookViewSelector = "#notebook_toolbar > div.col-sm-8.no-padding > div.dynamic-buttons > button.view-button.btn.btn-default.btn-xs"
47- await utils . waitAndClick ( nbIframe , notebookViewSelector )
48-
47+ await utils . waitAndClick ( nbIframe , notebookViewSelector ) ;
48+ console . log ( "notebook iframe found" ) ;
49+ await tutorial . waitFor ( 5000 ) ;
4950
5051 // inside the first notebook, click Run all button
5152 const cellMenuSelector = '#menus > div > div > ul > li:nth-child(5) > a'
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ async function waitForValidOutputFile(page) {
300300 } )
301301}
302302
303- async function waitAndClick ( page , id , timeout ) {
303+ async function waitAndClick ( page , id , timeout = null ) {
304304 await page . waitForSelector ( id , {
305305 timeout : ( timeout ? timeout : 30000 ) // default 30s
306306 } ) ;
You can’t perform that action at this time.
0 commit comments