@@ -3,14 +3,13 @@ Suite Setup Setup Suite For Screenshots completion
33Resource ../Keywords.robot
44
55*** Variables ***
6- ${STATUSBAR } css:div.lsp-statusbar-item
76${COMPLETER_BOX } css:.jp-Completer.jp-HoverBox
87
98*** Test Cases ***
109Works With Kernel Running
1110 [Documentation] The suggestions from kernel and LSP should get integrated.
1211 Setup Notebook Python Completion.ipynb
13- Wait Until Element Contains ${ STATUSBAR } Fully initialized timeout=20s
12+ Wait Until Fully Initialized
1413 Enter Cell Editor 1 line=2
1514 Capture Page Screenshot 01-entered-cell.png
1615 Trigger Completer
@@ -29,6 +28,7 @@ Works With Kernel Running
2928
3029Works When Kernel Is Shut Down
3130 Setup Notebook Python Completion.ipynb
31+ Wait Until Fully Initialized
3232 Lab Command Shut Down All Kernels…
3333 Capture Page Screenshot 01-shutting-kernels.png
3434 Accept Default Dialog Option
@@ -46,6 +46,7 @@ Autocompletes If Only One Option
4646 Setup Notebook Python Completion.ipynb
4747 Enter Cell Editor 3 line=1
4848 Press Keys None cle
49+ Wait Until Fully Initialized
4950 Press Keys None TAB
5051 Wait Until Keyword Succeeds 40x 0.5s Cell Editor Should Equal 3 list.clear
5152 [Teardown] Clean Up After Working With File Completion.ipynb
@@ -54,17 +55,22 @@ User Can Select Lowercase After Starting Uppercase
5455 Setup Notebook Python Completion.ipynb
5556 Enter Cell Editor 4 line=1
5657 Trigger Completer
57- Completer Should Suggest time
58+ Completer Should Suggest time
5859 Press Keys None ENTER
5960 Wait Until Keyword Succeeds 40x 0.5s Cell Editor Should Equal 4 from time import time
6061 [Teardown] Clean Up After Working With File Completion.ipynb
6162
62- *** Keywords ***
63- Enter Cell Editor
64- [Arguments] ${cell_nr } ${line } =1
65- Click Element css:.jp-CodeCell:nth-child(${cell_nr } ) .CodeMirror-line:nth-child(${line } )
66- Wait Until Page Contains Element css:.jp-CodeCell:nth-child(${cell_nr } ) .CodeMirror-focused
63+ Triggers Completer On Dot
64+ Setup Notebook Python Completion.ipynb
65+ Enter Cell Editor 2 line=1
66+ Wait Until Fully Initialized
67+ Press Keys None .
68+ Wait Until Keyword Succeeds 10x 0.5s Cell Editor Should Equal 2 list.
69+ Wait Until Page Contains Element ${COMPLETER_BOX } timeout=35s
70+ Completer Should Suggest append
71+ [Teardown] Clean Up After Working With File Completion.ipynb
6772
73+ *** Keywords ***
6874Get Cell Editor Content
6975 [Arguments] ${cell_nr }
7076 ${content } Execute JavaScript return document.querySelector('.jp-CodeCell:nth-child(${cell_nr } ) .CodeMirror').CodeMirror.getValue()
@@ -85,4 +91,4 @@ Completer Should Not Suggest
8591
8692Trigger Completer
8793 Press Keys None TAB
88- Wait Until Page Contains Element ${COMPLETER_BOX } timeout=15s
94+ Wait Until Page Contains Element ${COMPLETER_BOX } timeout=35s
0 commit comments