aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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