Skip to content

Commit 7066b5a

Browse files
committed
Fix robocop warning and deprecation warning
1 parent 9886ad4 commit 7066b5a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

atest/Keywords.resource

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ Create Notebok Server Config
5454
... user_settings_dir=${SETTINGS DIR}
5555
... workspaces_dir=${WORKSPACES DIR}
5656
# should be automatically enabled, so do not enable manually:
57-
Run Keyword Unless
58-
... ${server_extension_enabled}
59-
... Set Server Extension State ${conf} enabled=${server_extension_enabled}
57+
IF not ${server_extension_enabled}
58+
Set Server Extension State ${conf} enabled=${server_extension_enabled}
59+
END
6060
Update Jupyter Config ${conf} LanguageServerManager
6161
... extra_node_roots=@{extra_node_roots}
6262

@@ -151,8 +151,10 @@ Ensure All Kernels Are Shut Down
151151
${els} = Get WebElements ${CMD PALETTE ITEM ACTIVE}
152152
IF ${els.__len__()} Click Element ${CMD PALETTE ITEM ACTIVE}
153153
${accept} = Set Variable css:.jp-mod-accept.jp-mod-warn
154-
IF ${els.__len__()} Wait Until Page Contains Element ${accept}
155-
IF ${els.__len__()} Click Element ${accept}
154+
IF ${els.__len__()}
155+
Wait Until Page Contains Element ${accept}
156+
Click Element ${accept}
157+
END
156158

157159
Open Command Palette
158160
Press Keys id:main ${ACCEL}+SHIFT+c

0 commit comments

Comments
 (0)