From c37149ccfb0b2ac72746f10cacc45707e89d8608 Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Mon, 1 Aug 2022 16:59:28 -0700 Subject: [PATCH] Type out query text one letter at a time in autocompletion test. (#20222) --- test/smoke/src/sql/areas/notebook/notebook.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/smoke/src/sql/areas/notebook/notebook.test.ts b/test/smoke/src/sql/areas/notebook/notebook.test.ts index db1e4e4789..4b69defa17 100644 --- a/test/smoke/src/sql/areas/notebook/notebook.test.ts +++ b/test/smoke/src/sql/areas/notebook/notebook.test.ts @@ -40,9 +40,10 @@ export function setup(opts: minimist.ParsedArgs) { await app.workbench.sqlNotebook.addCellFromPlaceholder('Code'); await app.workbench.sqlNotebook.waitForPlaceholderGone(); - const text1: string = 'SEL'; - await app.workbench.sqlNotebook.waitForTypeInEditor(text1); - await app.code.dispatchKeybinding('ctrl+space bar'); + await app.workbench.sqlNotebook.waitForTypeInEditor('S'); + await app.workbench.sqlNotebook.waitForTypeInEditor('E'); + await app.workbench.sqlNotebook.waitForTypeInEditor('L'); + await app.code.dispatchKeybinding('ctrl+space'); // check for completion suggestions await app.workbench.sqlNotebook.waitForSuggestionWidget();