mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
wait additional tick
This commit is contained in:
parent
bcba9a3e50
commit
409a111b02
3 changed files with 2 additions and 3 deletions
|
@ -157,7 +157,7 @@
|
||||||
"webpack-cli": "^3.1.1"
|
"webpack-cli": "^3.1.1"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"testMatch": ["**/*-test.js"],
|
"testMatch": ["test/**/*-test.js"],
|
||||||
"setupTestFrameworkScriptFile": "<rootDir>/test/setupTests.js",
|
"setupTestFrameworkScriptFile": "<rootDir>/test/setupTests.js",
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
"\\.(gif|png|svg|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js"
|
"\\.(gif|png|svg|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js"
|
||||||
|
|
|
@ -302,7 +302,7 @@ describe('GroupView', function() {
|
||||||
|
|
||||||
it('should show a RoomDetailList after a successful /summary & /rooms (no rooms returned)', function() {
|
it('should show a RoomDetailList after a successful /summary & /rooms (no rooms returned)', function() {
|
||||||
const groupView = ReactTestUtils.findRenderedComponentWithType(root, GroupView);
|
const groupView = ReactTestUtils.findRenderedComponentWithType(root, GroupView);
|
||||||
const prom = waitForUpdate(groupView, 4).then(() => {
|
const prom = waitForUpdate(groupView, 5).then(() => {
|
||||||
const roomDetailList = ReactTestUtils.findRenderedDOMComponentWithClass(root, 'mx_RoomDetailList');
|
const roomDetailList = ReactTestUtils.findRenderedDOMComponentWithClass(root, 'mx_RoomDetailList');
|
||||||
const roomDetailListElement = ReactDOM.findDOMNode(roomDetailList);
|
const roomDetailListElement = ReactDOM.findDOMNode(roomDetailList);
|
||||||
expect(roomDetailListElement).toBeTruthy();
|
expect(roomDetailListElement).toBeTruthy();
|
||||||
|
|
|
@ -74,7 +74,6 @@ describe('MegolmExportEncryption', function() {
|
||||||
let MegolmExportEncryption;
|
let MegolmExportEncryption;
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
// window.crypto = { subtle: crypto.subtle, getRandomValues };
|
|
||||||
window.crypto = { subtle: webCrypto.subtle, getRandomValues };
|
window.crypto = { subtle: webCrypto.subtle, getRandomValues };
|
||||||
MegolmExportEncryption = require("../../src/utils/MegolmExportEncryption");
|
MegolmExportEncryption = require("../../src/utils/MegolmExportEncryption");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue