diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-12-09 22:14:13 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-12-09 23:09:34 +0900 |
commit | d2fb674566393d9a8b88d71dba9f5081786b118c (patch) | |
tree | 4ab7b483b9ded38e83d163e37aae38faf622a848 | |
parent | 18d3a6411753e97cd49b71b41db7bda8055a2762 (diff) |
Stabilize x$ test case on e2e tests
-rw-r--r-- | e2e/tab.test.ts | 6 |
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 () => { |