FEATURE: ensure localStorage is disabled in smoke tests

This commit is contained in:
Régis Hanol 2015-09-15 18:26:09 +02:00
parent 721b282d3c
commit 7e1a24e205

View file

@ -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);
// }