Skip to content

Commit 762c8e6

Browse files
committed
Add test for documentation panel with R language server
1 parent c32561a commit 762c8e6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

atest/05_Features/Completion.robot

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Resource ../Keywords.robot
77

88
*** Variables ***
99
${COMPLETER_BOX} css:.jp-Completer.jp-HoverBox
10+
${DOCUMENTATION_PANEL} css:.jp-Completer-docpanel
1011

1112
*** Test Cases ***
1213
Works With Kernel Running
@@ -227,6 +228,15 @@ Completes Large Namespaces
227228
Completer Should Suggest abs timeout=30s
228229
[Teardown] Clean Up After Working With File completion.R
229230

231+
Shows Documentation With CompletionItem Resolve
232+
[Setup] Prepare File for Editing R completion completion.R
233+
Place Cursor In File Editor At 8 12
234+
Wait Until Fully Initialized
235+
Trigger Completer
236+
Completer Should Suggest print.default
237+
Completer Should Include Documentation the default method of the
238+
[Teardown] Clean Up After Working With File completion.R
239+
230240
*** Keywords ***
231241
Setup Completion Test
232242
Setup Notebook Python Completion.ipynb
@@ -275,3 +285,8 @@ Trigger Completer
275285
[Arguments] ${timeout}=35s
276286
Press Keys None TAB
277287
Wait Until Page Contains Element ${COMPLETER_BOX} timeout=${timeout}
288+
289+
Completer Should Include Documentation
290+
[Arguments] ${text}
291+
Wait Until Page Contains Element ${DOCUMENTATION_PANEL} timeout=10s
292+
Element Should Contain ${DOCUMENTATION_PANEL} ${text}

atest/examples/completion.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ tools::
44
datasets:::
55
# `base:::<tab>` → works
66
base:::
7+
# `print.defaul<tab>` → shows documentation for `print.default`
8+
print.defaul

0 commit comments

Comments
 (0)