Skip to content

Commit 58b426f

Browse files
colinRawlingsColin Rawlings
andauthored
Add the apparently missing delay and some more screenshots. (ITISFoundation#3074)
Co-authored-by: Colin Rawlings <[email protected]>
1 parent 46c78d3 commit 58b426f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/e2e/tutorials/jupyterlabs.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)