@@ -43,9 +43,27 @@ Autocompletes If Only One Option
43
43
Enter Cell Editor 3 line=1
44
44
Press Keys None cle
45
45
Wait Until Fully Initialized
46
+ # First tab brings up the completer
46
47
Press Keys None TAB
48
+ Completer Should Suggest clear
49
+ # Second tab inserts the only suggestion
50
+ Press Keys None TAB
51
+ # depends on Python list type having only one method with prefix "cle"
47
52
Wait Until Keyword Succeeds 40x 0.5s Cell Editor Should Equal 3 list.clear
48
53
54
+ Does Not Autocomplete If Multiple Options
55
+ Enter Cell Editor 3 line=1
56
+ Press Keys None c
57
+ Wait Until Fully Initialized
58
+ # First tab brings up the completer
59
+ Press Keys None TAB
60
+ Completer Should Suggest copy
61
+ # Second tab inserts should not insert the first of many choices.
62
+ Press Keys None TAB
63
+ # depends on Python list type having multiple methods with prefix "c"
64
+ # in this case "Completer Should Suggest" means that the completer is still shown!
65
+ Completer Should Suggest copy
66
+
49
67
User Can Select Lowercase After Starting Uppercase
50
68
# `from time import Tim<tab>` → `from time import time`
51
69
Enter Cell Editor 5 line=1
@@ -58,12 +76,16 @@ Mid Token Completions Do Not Overwrite
58
76
# `disp<tab>data` → `display_table<cursor>data`
59
77
Place Cursor In Cell Editor At 9 line=1 character=4
60
78
Capture Page Screenshot 01-cursor-placed.png
61
- Press Keys None TAB
79
+ Trigger Completer
80
+ Completer Should Suggest display_table
81
+ Select Completer Suggestion display_table
62
82
Capture Page Screenshot 02-completed.png
63
83
Wait Until Keyword Succeeds 40x 0.5s Cell Editor Should Equal 9 display_tabledata
64
84
# `disp<tab>lay` → `display_table<cursor>`
65
85
Place Cursor In Cell Editor At 11 line=1 character=4
66
- Press Keys None TAB
86
+ Trigger Completer
87
+ Completer Should Suggest display_table
88
+ Select Completer Suggestion display_table
67
89
Wait Until Keyword Succeeds 40x 0.5s Cell Editor Should Equal 11 display_table
68
90
69
91
Completion Works For Tokens Separated By Space
0 commit comments