diff --git a/spec/phantom_js/smoke_test.js b/spec/phantom_js/smoke_test.js index c41c488ea85..969205dc437 100644 --- a/spec/phantom_js/smoke_test.js +++ b/spec/phantom_js/smoke_test.js @@ -17,6 +17,14 @@ page.viewportSize = { height: 768 }; +// In the browser, when the cookies are disabled, it also disables the localStorage +// Here, we're mocking that behavior and making sure the application doesn't blow up +page.onInitialized = function() { + page.evaluate(function() { + localStorage["disableLocalStorage"] = true; + }) +} + // page.onConsoleMessage = function(msg) { // console.log(msg); // }