Fix or skip broken tests

When there is navigation with #btnClose, all APIs would fail.
So such tests are marked as "skipped".
This commit is contained in:
Yuya Ochiai
2018-11-04 01:04:56 +09:00
parent dee1865e59
commit 70b3aa0531
4 changed files with 36 additions and 31 deletions

16
test/modules/utils.js Normal file
View File

@@ -0,0 +1,16 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
function asyncSleep(timeout) {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, timeout);
});
}
module.exports = {
asyncSleep,
};