Type out query text one letter at a time in autocompletion test. (#20222)

This commit is contained in:
Cory Rivera
2022-08-01 16:59:28 -07:00
committed by GitHub
parent 74c715f16f
commit c37149ccfb

View File

@@ -40,9 +40,10 @@ export function setup(opts: minimist.ParsedArgs) {
await app.workbench.sqlNotebook.addCellFromPlaceholder('Code'); await app.workbench.sqlNotebook.addCellFromPlaceholder('Code');
await app.workbench.sqlNotebook.waitForPlaceholderGone(); await app.workbench.sqlNotebook.waitForPlaceholderGone();
const text1: string = 'SEL'; await app.workbench.sqlNotebook.waitForTypeInEditor('S');
await app.workbench.sqlNotebook.waitForTypeInEditor(text1); await app.workbench.sqlNotebook.waitForTypeInEditor('E');
await app.code.dispatchKeybinding('ctrl+space bar'); await app.workbench.sqlNotebook.waitForTypeInEditor('L');
await app.code.dispatchKeybinding('ctrl+space');
// check for completion suggestions // check for completion suggestions
await app.workbench.sqlNotebook.waitForSuggestionWidget(); await app.workbench.sqlNotebook.waitForSuggestionWidget();