Skip to content

Commit d601129

Browse files
committed
ci: fix failing e2e test
1 parent d1dbc48 commit d601129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shopping-cart/api/shop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
buyProducts (products, cb, errorCb) {
1616
setTimeout(() => {
1717
// simulate random checkout failure.
18-
(Math.random() > 0.5 || navigator.userAgent.indexOf('PhantomJS') > -1)
18+
(Math.random() > 0.5 || navigator.webdriver)
1919
? cb()
2020
: errorCb()
2121
}, 100)

0 commit comments

Comments
 (0)