File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,20 @@ Setup Notebook
281
281
IF ${isolated } Try to Close All Tabs
282
282
Open ${file } in ${MENU NOTEBOOK }
283
283
Capture Page Screenshot 00-notebook-opened.png
284
+ # Kernel selection dialog may show up if the ipykernel version changed
285
+ # since the last time notebooks were updated; because we are testing
286
+ # with different ipykernel versions, this is inevitable. In such a case
287
+ # accept the suggested kernel choice
288
+ IF ${wait }
289
+ Wait Until Page Contains Element css:div.lsp-statusbar-item
290
+ Wait For Condition
291
+ ... return document.querySelector('div.lsp-statusbar-item').textContent.includes('Fully initialized') || document.querySelector('.jp-Dialog') !== null;
292
+ ... timeout=180s
293
+ ELSE
294
+ Wait For Dialog
295
+ END
296
+ ${count } = Get Element Count ${DIALOG WINDOW }
297
+ IF ${count } != 0 Accept Default Dialog Option
284
298
IF ${wait } Wait Until Fully Initialized
285
299
Capture Page Screenshot 01-notebook-initialized.png
286
300
You can’t perform that action at this time.
0 commit comments