Fix GroupView test
It was counting the wrong number of updates for reasons I don't understand.
This commit is contained in:
parent
813b14018e
commit
1e70af00a3
1 changed files with 1 additions and 1 deletions
|
@ -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, 5).then(() => {
|
const prom = waitForUpdate(groupView, 4).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();
|
||||||
|
|
Loading…
Reference in a new issue