You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
wait additional tick
This commit is contained in:
@@ -302,7 +302,7 @@ describe('GroupView', function() {
|
||||
|
||||
it('should show a RoomDetailList after a successful /summary & /rooms (no rooms returned)', function() {
|
||||
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 roomDetailListElement = ReactDOM.findDOMNode(roomDetailList);
|
||||
expect(roomDetailListElement).toBeTruthy();
|
||||
|
@@ -74,7 +74,6 @@ describe('MegolmExportEncryption', function() {
|
||||
let MegolmExportEncryption;
|
||||
|
||||
beforeAll(() => {
|
||||
// window.crypto = { subtle: crypto.subtle, getRandomValues };
|
||||
window.crypto = { subtle: webCrypto.subtle, getRandomValues };
|
||||
MegolmExportEncryption = require("../../src/utils/MegolmExportEncryption");
|
||||
});
|
||||
|
Reference in New Issue
Block a user