diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-05-08 13:33:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 13:33:46 +0000 |
commit | 9279fff1351406a1f6c37c074cc1997e6a9e97e3 (patch) | |
tree | cc8e53f783efc5eb737af31bb9dd15c9e6474782 /e2e/completion.test.ts | |
parent | 4468afca7a8c9893f71f7e042b25f6c46ba49678 (diff) | |
parent | 2a6d6b0967c6f6e269c3eedf4bd6002aee26b9da (diff) |
Merge pull request #1418 from ueokande/await-completions
Await fetching completions done completely
Diffstat (limited to 'e2e/completion.test.ts')
-rw-r--r-- | e2e/completion.test.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/e2e/completion.test.ts b/e2e/completion.test.ts index 258353c..8fddc0a 100644 --- a/e2e/completion.test.ts +++ b/e2e/completion.test.ts @@ -41,11 +41,13 @@ describe("general completion test", () => { const console = await page.showConsole(); await console.inputKeys("b"); - const groups = await console.getCompletions(); - const items = groups[0].items; - assert.ok(items[0].text.startsWith("buffer")); - assert.ok(items[1].text.startsWith("bdelete")); - assert.ok(items[2].text.startsWith("bdeletes")); + await eventually(async () => { + const groups = await console.getCompletions(); + const items = groups[0].items; + assert.ok(items[0].text.startsWith("buffer")); + assert.ok(items[1].text.startsWith("bdelete")); + assert.ok(items[2].text.startsWith("bdeletes")); + }); }); // > byffer |