Przeglądaj źródła

Merge pull request #1674 from vuejs/e2e-test

ci: fix failing e2e test
Kia King Ishii 5 lat temu
rodzic
commit
4ebfaf98d0
1 zmienionych plików z 1 dodań i 1 usunięć
  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)