1
0
Эх сурвалжийг харах

Merge pull request #1674 from vuejs/e2e-test

ci: fix failing e2e test
Kia King Ishii 5 жил өмнө
parent
commit
4ebfaf98d0

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