aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/background/tabs.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-12 23:21:16 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 01:01:10 +0900
commit82aad419a74a3061247d4e82656fa711e63f213c (patch)
treed2b435195ef3d1ca27444739e836bf66a19a9565 /e2e/ambassador/src/background/tabs.js
parentc6c885345e212bedc2723e9105488d3e5fe9f8be (diff)
Add navigate test
Diffstat (limited to 'e2e/ambassador/src/background/tabs.js')
-rw-r--r--e2e/ambassador/src/background/tabs.js2
1 files changed, 1 insertions, 1 deletions
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);