diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-08-20 21:24:28 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-08-20 21:25:29 +0900 |
commit | 7eca11e5560d771323d9e327761c181a1b8bb9e5 (patch) | |
tree | 80322f802be3f89f1f14a089f57375050273052c | |
parent | e7ed84f7576eafadfcd0f7b9737586d048477454 (diff) |
Make e2e tests more stabilized
-rw-r--r-- | e2e/tab.test.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/e2e/tab.test.js b/e2e/tab.test.js index c82890e..99f0374 100644 --- a/e2e/tab.test.js +++ b/e2e/tab.test.js @@ -71,10 +71,12 @@ describe("tab test", () => { let body = await session.findElementByCSS('body'); await body.sendKeys(Key.Shift, 'D'); - let current = await browser.tabs.query({ windowId: win.id }); - assert(current.length === tabs.length - 1); - assert(current[2].active); - assert(current[2].url === tabs[2].url); + await eventually(async() => { + let current = await browser.tabs.query({ windowId: win.id }); + assert(current.length === tabs.length - 1); + assert(current[2].active); + assert(current[2].url === tabs[2].url); + }) }); it('deletes all tabs to the right by x$', async () => { |