@@ -48,20 +48,23 @@ Can Prioritize LSP Completions
4848 Should Be True ${kernel_position } > ${lsp_position }
4949
5050Invalidates On Cell Change
51+ # this test seems to crash Jedi (highlights crash on
52+ # `usages = document.jedi_script().get_references(**code_position)`
5153 Enter Cell Editor 1 line=2
5254 Press Keys None TAB
5355 Enter Cell Editor 2
54- # just to increase chances of caching this on CI (which is slow)
55- Sleep 5s
56+ # just to increase chances of catching this on CI (which is slow)
57+ Sleep 4s
5658 Completer Should Not Suggest test
5759
5860Invalidates On Focus Loss
5961 Enter Cell Editor 1 line=2
6062 Press Keys None TAB
61- Enter Cell Editor 2
62- # just to increase chances of caching this on CI (which is slow)
63- Sleep 5s
63+ Click JupyterLab Menu File
64+ # just to increase chances of catching this on CI (which is slow)
65+ Sleep 4s
6466 Completer Should Not Suggest test
67+ Enter Cell Editor 1 line=2
6568
6669Uses LSP Completions When Kernel Resoponse Times Out
6770 Configure JupyterLab Plugin {"kernelResponseTimeout": 1, "waitForBusyKernel": true} plugin id=${COMPLETION PLUGIN ID }
@@ -120,16 +123,18 @@ Completes In Strings Or Python Dictionaries
120123 Wait Until Keyword Succeeds 40x 0.5s File Editor Line Should Equal 15 test_dict['key_a']
121124 [Teardown] Clean Up After Working With File completion.py
122125
123- Continious Hinting Works
126+ Continuous Hinting Works
127+ [Setup] Prepare File for Editing Python completion completion.py
124128 Configure JupyterLab Plugin {"continuousHinting": true} plugin id=${COMPLETION PLUGIN ID }
125- Prepare File for Editing Python completion completion.py
126129 Place Cursor In File Editor At 9 2
127- Capture Page Screenshot 01-editor-ready.png
130+ Wait For Ready State
128131 Press Keys None d
132+ Wait For Ready State
129133 Completer Should Suggest addition
130134 # gh430 - auto invoke after dot should work too
131135 Press Keys None .
132136 Completer Should Suggest __doc__
137+ [Teardown] Clean Up After Working With File completion.py
133138
134139Autocompletes If Only One Option
135140 Enter Cell Editor 3 line=1
@@ -174,7 +179,9 @@ Mid Token Completions Do Not Overwrite
174179 # `disp<tab>lay` → `display_table<cursor>`
175180 Place Cursor In Cell Editor At 11 line=1 character=4
176181 Trigger Completer
182+ Wait For Ready State
177183 Completer Should Suggest display_table
184+ Wait For Ready State
178185 Select Completer Suggestion display_table
179186 Wait Until Keyword Succeeds 40x 0.5s Cell Editor Should Equal 11 display_table
180187
@@ -369,14 +376,14 @@ Activate Completer Suggestion
369376Select Completer Suggestion
370377 [Arguments] ${text }
371378 ${suggestion } = Set Variable css:.jp-Completer-item[data-value="${text } "]
372- Wait Until Element Is Visible ${suggestion } timeout=10s
379+ Wait Until Element Is Visible ${suggestion } timeout=15s
380+ Scroll Element Into View ${suggestion }
373381 Mouse Over ${suggestion }
374382 Click Element ${suggestion } code
375383
376384Completer Should Suggest
377385 [Arguments] ${text } ${timeout } =10s
378386 Wait Until Page Contains Element ${COMPLETER_BOX } .jp-Completer-item[data-value="${text } "] timeout=${timeout }
379- Capture Page Screenshot ${text.replace(' ', '_') } .png
380387
381388Get Completion Item Vertical Position
382389 [Arguments] ${text }
@@ -393,6 +400,7 @@ Completer Should Not Suggest
393400
394401Trigger Completer
395402 [Arguments] ${timeout } =35s
403+ Wait For Ready State
396404 Press Keys None TAB
397405 Wait Until Page Contains Element ${COMPLETER_BOX } timeout=${timeout }
398406
0 commit comments