aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--e2e/tab.test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/e2e/tab.test.ts b/e2e/tab.test.ts
index 98ec9f8..49d1c03 100644
--- a/e2e/tab.test.ts
+++ b/e2e/tab.test.ts
@@ -79,8 +79,10 @@ describe("tab test", () => {
const page = await Page.currentContext(webdriver);
await page.sendKeys("x", "$");
- const current = await browser.tabs.query({ windowId: win.id });
- assert.strictEqual(current.length, 2);
+ await eventually(async () => {
+ const current = await browser.tabs.query({ windowId: win.id });
+ assert.strictEqual(current.length, 2);
+ });
});
it("duplicates tab by zd", async () => {