From 82aad419a74a3061247d4e82656fa711e63f213c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 12 May 2018 23:21:16 +0900 Subject: Add navigate test --- e2e/ambassador/src/background/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'e2e/ambassador/src/background/tabs.js') diff --git a/e2e/ambassador/src/background/tabs.js b/e2e/ambassador/src/background/tabs.js index d049500..37156c4 100644 --- a/e2e/ambassador/src/background/tabs.js +++ b/e2e/ambassador/src/background/tabs.js @@ -5,7 +5,7 @@ const create = (props = {}) => { if (tab.url !== 'about:blank' && tabId === createdTab.id && changeInfo.status === 'complete') { browser.tabs.onUpdated.removeListener(callback); - resolve(tab); + setTimeout(() => resolve(tab), 50) // wait for 50 milliseconds to ensure plugin loaded; } }; browser.tabs.onUpdated.addListener(callback); -- cgit v1.2.3