From 8a02b5747c3090ee7ead7e181c533a06c280b6b5 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 16 Jun 2018 22:15:08 +0900 Subject: [PATCH] Sleep on reopen test --- e2e/contents/tab.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js index 72479b9..3846248 100644 --- a/e2e/contents/tab.test.js +++ b/e2e/contents/tab.test.js @@ -222,6 +222,8 @@ describe("tab test", () => { }).then((win) => { expect(win.tabs).to.have.lengthOf(1); return keys.press(win.tabs[0].id, 'u'); + }).then(() => { + return new Promise((resolve) => setTimeout(resolve, 100)); }).then(() => { return windows.get(targetWindow.id); }).then((win) => {