Skip to content

Commit 81f7d6d

Browse files
committed
Fix flaky completion tests
1 parent 26cb8fb commit 81f7d6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

atest/05_Features/Completion.robot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ Completes Correctly With R Double And Triple Colon
295295
[Setup] Prepare File for Editing R completion completion.R
296296
Place Cursor In File Editor At 2 7
297297
Wait Until Fully Initialized
298+
# normally the completion adapter taking time to initialise is not a problem
299+
# but because the token-based completion fallback would break our test example
300+
# if it kicked off we try to avoid it by adding some delay
301+
# TODO remove sleep after migrating to JupyterLab 4.0 native adapters.
302+
Sleep 2s Workaround completion adapter taking some time to initialize
298303
Trigger Completer
299304
Completer Should Suggest .print.via.format
300305
Select Completer Suggestion .print.via.format
@@ -319,6 +324,8 @@ Shows Documentation With CompletionItem Resolve
319324
[Setup] Prepare File for Editing R completion completion.R
320325
Place Cursor In File Editor At 8 7
321326
Wait Until Fully Initialized
327+
# TODO remove sleep after migrating to JupyterLab 4.0 native adapters.
328+
Sleep 2s Workaround completion adapter taking some time to initialize
322329
Trigger Completer
323330
Completer Should Suggest print.data.frame
324331
# if data.frame is not active, activate it (it should be in top 10 on any platform)

0 commit comments

Comments
 (0)