Skip to content

Commit 3d82352

Browse files
committed
Fix CI failures with Python 3.10
1 parent e195d8f commit 3d82352

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

atest/Keywords.resource

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,20 @@ Setup Notebook
281281
IF ${isolated} Try to Close All Tabs
282282
Open ${file} in ${MENU NOTEBOOK}
283283
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
284298
IF ${wait} Wait Until Fully Initialized
285299
Capture Page Screenshot 01-notebook-initialized.png
286300

0 commit comments

Comments
 (0)