فهرست منبع

ci: fix failing e2e test

Kia Ishii 5 سال پیش
والد
کامیت
d601129082
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      examples/shopping-cart/api/shop.js

+ 1 - 1
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)