aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2022-05-05 14:48:41 +0000
committerShin'ya Ueoka <ueokande@i-beam.org>2022-05-05 14:48:41 +0000
commit2a6d6b0967c6f6e269c3eedf4bd6002aee26b9da (patch)
tree886f34711a0450934ed2ffb014ebba7e15238dd2
parent3f347b66be898b54ffa45265ae9cce7b35e04433 (diff)
Stabilize test
-rw-r--r--e2e/completion.test.ts12
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