Debounce showing or hiding rooms list

This commit is contained in:
JC Brand 2019-02-18 18:54:17 +01:00
parent 47936dbfd4
commit 3a2dab9e8c

View File

@ -33,7 +33,7 @@
expect(room_els.length).toBe(1);
expect(room_els[0].innerText).toBe('lounge@localhost');
list = controlbox.el.querySelector('div.rooms-list-container');
expect(_.includes(list.classList, 'hidden')).toBeFalsy();
test_utils.waitUntil(() => _.includes(list.classList, 'hidden'));
view = _converse.chatboxviews.get('lounge@localhost');
view.close();