mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FEATURE: ensure localStorage is disabled in smoke tests
This commit is contained in:
parent
721b282d3c
commit
7e1a24e205
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue