Skip to content

Commit

Permalink
ci: fix failing e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Feb 5, 2020
1 parent d1dbc48 commit d601129
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 d601129

Please sign in to comment.