mirror of
https://github.com/discourse/discourse.git
synced 2025-04-08 13:20:43 +08:00
FEATURE: ensure localStorage is disabled in smoke tests
This commit is contained in:
parent
721b282d3c
commit
7e1a24e205
@ -17,6 +17,14 @@ page.viewportSize = {
|
|||||||
height: 768
|
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) {
|
// page.onConsoleMessage = function(msg) {
|
||||||
// console.log(msg);
|
// console.log(msg);
|
||||||
// }
|
// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user