File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -48,25 +48,33 @@ async function runTutorial() {
4848 }
4949 const jLabIframe = iframes2 . find ( iframe => iframe . _url . includes ( workbenchData [ "nodeIds" ] [ j ] ) ) ;
5050
51+ await tutorial . takeScreenshot ( "before_nb_selection" ) ;
5152 const input2outputFileSelector = '[title~="jl_notebook.ipynb"]' ;
5253 await jLabIframe . waitForSelector ( input2outputFileSelector ) ;
5354 await jLabIframe . click ( input2outputFileSelector , {
5455 clickCount : 2
5556 } ) ;
57+ await tutorial . takeScreenshot ( "after_nb_selection" ) ;
58+
5659 await tutorial . waitFor ( 5000 ) ;
5760 // click Run Menu
5861 const mainRunMenuBtnSelector = '#jp-MainMenu > ul > li:nth-child(4)' ; // select the Run Menu
5962 await utils . waitAndClick ( jLabIframe , mainRunMenuBtnSelector )
6063
64+ await tutorial . takeScreenshot ( "after_run_menu" ) ;
65+
6166 // click Run All Cells
6267 const mainRunAllBtnSelector = '#jp-mainmenu-run > ul > li:nth-child(12)' ; // select the Run
6368 await utils . waitAndClick ( jLabIframe , mainRunAllBtnSelector )
6469
70+ await tutorial . takeScreenshot ( "after_run_all_menu" ) ;
71+
6572 if ( j === 2 ) {
6673 await tutorial . waitFor ( 40000 ) ; // we are solving an em problem
74+ } else {
75+ await tutorial . waitFor ( 5000 ) ; // we are not solving an em problem
6776 }
6877
69-
7078 const outFiles = [
7179 "TheNumber.txt" ,
7280 "workspace.zip"
You can’t perform that action at this time.
0 commit comments