瀏覽代碼

Merge pull request #1674 from vuejs/e2e-test

ci: fix failing e2e test
Kia King Ishii 5 年之前
父節點
當前提交
4ebfaf98d0
共有 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)