Skip to content

Commit

Permalink
Merge pull request #1674 from vuejs/e2e-test
Browse files Browse the repository at this point in the history
ci: fix failing e2e test
  • Loading branch information
kiaking authored Feb 5, 2020
2 parents d1dbc48 + d601129 commit 4ebfaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/shopping-cart/api/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ebfaf9

Please sign in to comment.