Skip to content

Commit d9e9fb0

Browse files
committed
Update tests to account for initial filtering
1 parent 56dbc5d commit d9e9fb0

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

atest/05_Features/Completion.robot

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ ${KERNEL_BUSY_INDICATOR} css:.jp-NotebookPanel-toolbar div[title="Kernel Busy
1212

1313
*** Test Cases ***
1414
Works When Kernel Is Idle
15-
Configure JupyterLab Plugin {"kernelResponseTimeout": -1, "waitForBusyKernel": false} plugin id=${COMPLETION PLUGIN ID}
16-
[Documentation] The suggestions from kernel and LSP should get integrated.
15+
Configure JupyterLab Plugin {"kernelResponseTimeout": -1, "waitForBusyKernel": false, "caseSensitive": false} plugin id=${COMPLETION PLUGIN ID}
16+
[Documentation] The suggestions from kernel and LSP should get integrated; operates in case insensitive mode
1717
Enter Cell Editor 1 line=2
1818
Capture Page Screenshot 01-entered-cell.png
1919
Trigger Completer
2020
Capture Page Screenshot 02-completions-shown.png
21-
# lowercase and uppercase suggestions:
2221
Completer Should Suggest TabError
2322
# this comes from LSP:
2423
Completer Should Suggest test
@@ -29,6 +28,15 @@ Works When Kernel Is Idle
2928
${content} = Get Cell Editor Content 1
3029
Should Contain ${content} TabError
3130

31+
Filters Completions In Case Sensitive Mode
32+
Configure JupyterLab Plugin {"caseSensitive": true} plugin id=${COMPLETION PLUGIN ID}
33+
[Documentation] Completions filtering is case-sensitive when caseSensitive is true
34+
Enter Cell Editor 1 line=2
35+
Trigger Completer
36+
Completer Should Suggest test
37+
Completer Should Not Suggest TabError
38+
39+
3240
Can Prioritize Kernel Completions
3341
Configure JupyterLab Plugin {"kernelCompletionsFirst": true, "kernelResponseTimeout": -1} plugin id=${COMPLETION PLUGIN ID}
3442
Enter Cell Editor 1 line=2
@@ -212,7 +220,7 @@ Triggers Completer On Dot
212220
Completer Should Suggest append
213221

214222
Material Theme Works
215-
Configure JupyterLab Plugin {"theme": "material"} plugin id=${COMPLETION PLUGIN ID}
223+
Configure JupyterLab Plugin {"theme": "material", "caseSensitive": false} plugin id=${COMPLETION PLUGIN ID}
216224
Capture Page Screenshot 01-configured.png
217225
Enter Cell Editor 1 line=2
218226
Trigger Completer
@@ -223,7 +231,7 @@ Material Theme Works
223231
Completer Should Include Icon lsp:material-class-light
224232

225233
VSCode Theme Works
226-
Configure JupyterLab Plugin {"theme": "vscode"} plugin id=${COMPLETION PLUGIN ID}
234+
Configure JupyterLab Plugin {"theme": "vscode", "caseSensitive": false} plugin id=${COMPLETION PLUGIN ID}
227235
Capture Page Screenshot 01-configured.png
228236
Enter Cell Editor 1 line=2
229237
Trigger Completer
@@ -236,7 +244,7 @@ VSCode Dark Theme Works
236244
Lab Command Use Theme: JupyterLab Dark
237245
Wait For Splash
238246
Capture Page Screenshot 00-theme-changed.png
239-
Configure JupyterLab Plugin {"theme": "vscode"} plugin id=${COMPLETION PLUGIN ID}
247+
Configure JupyterLab Plugin {"theme": "vscode", "caseSensitive": false} plugin id=${COMPLETION PLUGIN ID}
240248
Capture Page Screenshot 01-configured.png
241249
Open ${file} in ${MENU NOTEBOOK}
242250
Wait Until Fully Initialized
@@ -249,7 +257,7 @@ VSCode Dark Theme Works
249257
Wait For Splash
250258

251259
Works Without A Theme
252-
Configure JupyterLab Plugin {"theme": null} plugin id=${COMPLETION PLUGIN ID}
260+
Configure JupyterLab Plugin {"theme": null, "caseSensitive": false} plugin id=${COMPLETION PLUGIN ID}
253261
Capture Page Screenshot 01-configured.png
254262
Enter Cell Editor 1 line=2
255263
Trigger Completer
@@ -258,7 +266,7 @@ Works Without A Theme
258266
Wait Until Page Contains Element ${COMPLETER_BOX} .jp-Completer-monogram
259267

260268
Works With Incorrect Theme
261-
Configure JupyterLab Plugin {"theme": "a-non-existing-theme"} plugin id=${COMPLETION PLUGIN ID}
269+
Configure JupyterLab Plugin {"theme": "a-non-existing-theme", "caseSensitive": false} plugin id=${COMPLETION PLUGIN ID}
262270
Capture Page Screenshot 01-configured.png
263271
Enter Cell Editor 1 line=2
264272
Trigger Completer

0 commit comments

Comments
 (0)