From d2fb674566393d9a8b88d71dba9f5081786b118c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 9 Dec 2020 22:14:13 +0900 Subject: Stabilize x$ test case on e2e tests --- e2e/tab.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'e2e') 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 () => { -- cgit v1.2.3