From d601129082fc30e5591e1341eb7abfc97f002991 Mon Sep 17 00:00:00 2001 From: Kia Ishii Date: Tue, 4 Feb 2020 18:22:01 +0900 Subject: [PATCH] ci: fix failing e2e test --- examples/shopping-cart/api/shop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/shopping-cart/api/shop.js b/examples/shopping-cart/api/shop.js index 5f3a53058..09d422d8c 100644 --- a/examples/shopping-cart/api/shop.js +++ b/examples/shopping-cart/api/shop.js @@ -15,7 +15,7 @@ export default { buyProducts (products, cb, errorCb) { setTimeout(() => { // simulate random checkout failure. - (Math.random() > 0.5 || navigator.userAgent.indexOf('PhantomJS') > -1) + (Math.random() > 0.5 || navigator.webdriver) ? cb() : errorCb() }, 100)