From 2a6d6b0967c6f6e269c3eedf4bd6002aee26b9da Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 5 May 2022 14:48:41 +0000 Subject: Stabilize test --- e2e/completion.test.ts | 12 +++++++----- 1 file 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 -- cgit v1.2.3