Skip to content

Commit 4c7cb7c

Browse files
authored
Merge pull request #813 from jupyter-lsp/fix-python-3.10-tests
Fix CI failures with Python 3.10
2 parents 8d86f9b + 1131b66 commit 4c7cb7c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

atest/05_Features/Completion.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Force Tags feature:completion
1212
${COMPLETER_BOX} css:.jp-Completer.jp-HoverBox
1313
${DOCUMENTATION_PANEL} css:.jp-Completer-docpanel
1414
${KERNEL_BUSY_INDCA_OLD} css:.jp-NotebookPanel-toolbar div[title="Kernel Busy"]
15-
${KERNEL_BUSY_INDICATOR} css:.jp-Notebook-ExecutionIndicator div[data-status="busy"]
15+
${KERNEL_BUSY_INDICATOR} css:.jp-Notebook-ExecutionIndicator[data-status="busy"]
1616

1717

1818
*** Test Cases ***

atest/07_Configuration.robot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ Settings Should Change Editor Diagnostics
7676
Capture Page Screenshot 03-settings-changed.png
7777
IF ${needs reload}
7878
Reload After Configuration ${language} ${file}
79+
# allow longer after reload
80+
Wait Until Page Contains Element ${after diagnostic} timeout=60s
81+
ELSE
82+
Wait Until Page Contains Element ${after diagnostic} timeout=30s
7983
END
80-
Wait Until Page Contains Element ${after diagnostic} timeout=30s
8184
Capture Page Screenshot 04-configured-diagnostic-found.png
8285
[Teardown] Clean Up After Working with File and Settings ${file}
8386

atest/Variables.resource

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ ${CSS DIALOG OK} css:.jp-Dialog .jp-mod-accept
2929
${MENU OPEN WITH} xpath://div[contains(@class, 'lm-Menu-itemLabel')][contains(text(), "Open With")]
3030
# R is missing on purpose (may need to use .)
3131
${MENU RENAME} xpath://div[contains(@class, 'lm-Menu-itemLabel')][contains(., "ename")]
32-
# N is missing on purpose
33-
${MENU NOTEBOOK} xpath://div[contains(@class, 'lm-Menu-itemLabel')][contains(., "otebook")]
32+
# N is missing on purpose (N is in separate <span>)
33+
${MENU NOTEBOOK} xpath://li[@data-command='filebrowser:open']/div[contains(@class, 'lm-Menu-itemLabel')][contains(., "otebook")]
3434
${DIAGNOSTICS PANEL} id:lsp-diagnostics-panel
3535
${DIAGNOSTIC PANEL CLOSE} css:.lm-DockPanel-tabBar .lm-TabBar-tab[data-id="lsp-diagnostics-panel"] .lm-TabBar-tabCloseIcon
3636
${DIALOG WINDOW} css:.jp-Dialog

0 commit comments

Comments
 (0)