wait additional tick

This commit is contained in:
Michael Telatynski 2019-12-17 12:42:47 +00:00
parent bcba9a3e50
commit 409a111b02
3 changed files with 2 additions and 3 deletions

View file

@ -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();