mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Make sure that we clear localstorage before *all* tests
This was causing flaky tests, as sometimes the joining test would inherit an "mx_is_guest" setting from a previous test run.
This commit is contained in:
parent
ab93e96a1f
commit
244265d52b
@ -59,8 +59,6 @@ describe('loading:', function () {
|
||||
|
||||
windowLocation = null;
|
||||
matrixChat = null;
|
||||
|
||||
window.localStorage.clear();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
|
@ -12,6 +12,10 @@ module.exports.beforeEach = function(context) {
|
||||
console.log();
|
||||
console.log(desc);
|
||||
console.log(new Array(1 + desc.length).join("="));
|
||||
|
||||
// some tests store things in localstorage. Improve independence of tests
|
||||
// by making sure that they don't inherit any old state.
|
||||
window.localStorage.clear();
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user