|
659 | 659 |
|
660 | 660 | await test_utils.waitUntil(() => _converse.rosterview.el.querySelectorAll('.roster-group').length);
|
661 | 661 | await test_utils.openChatBoxFor(_converse, contact_jid);
|
662 |
| - const chatview = await _converse.api.chatviews.get(contact_jid); |
| 662 | + const chatview = _converse.api.chatviews.get(contact_jid); |
663 | 663 | expect(u.isVisible(chatview.el)).toBeTruthy();
|
664 | 664 | expect(chatview.model.get('minimized')).toBeFalsy();
|
665 | 665 | chatview.el.querySelector('.toggle-chatbox-button').click();
|
|
2003 | 2003 | _converse.emit('rosterContactsFetched');
|
2004 | 2004 | const contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost';
|
2005 | 2005 | await test_utils.openChatBoxFor(_converse, contact_jid)
|
2006 |
| - const view = await _converse.api.chatviews.get(contact_jid); |
| 2006 | + const view = _converse.api.chatviews.get(contact_jid); |
2007 | 2007 | spyOn(view.model, 'sendMessage').and.callThrough();
|
2008 | 2008 | const url = base_url+"/logo/conversejs-filled.svg";
|
2009 | 2009 |
|
|
2160 | 2160 | async function (done, _converse) {
|
2161 | 2161 |
|
2162 | 2162 | await test_utils.openAndEnterChatRoom(_converse, 'lounge', 'localhost', 'dummy');
|
2163 |
| - const view = _converse.chatboxviews.get('lounge@localhost'); |
| 2163 | + const view = _converse.api.chatviews.get('lounge@localhost'); |
2164 | 2164 | if (!view.el.querySelectorAll('.chat-area').length) { view.renderChatArea(); }
|
2165 | 2165 | const message = 'dummy: Your attention is required';
|
2166 | 2166 | const nick = mock.chatroom_names[0],
|
|
2259 | 2259 |
|
2260 | 2260 | test_utils.createContacts(_converse, 'current');
|
2261 | 2261 | await test_utils.openAndEnterChatRoom(_converse, 'lounge', 'localhost', 'dummy');
|
2262 |
| - const view = _converse.chatboxviews.get('lounge@localhost'); |
| 2262 | + const view = _converse.api.chatviews.get('lounge@localhost'); |
2263 | 2263 | const msg = $msg({
|
2264 | 2264 | from: 'lounge@localhost/dummy',
|
2265 | 2265 | id: (new Date()).getTime(),
|
|
2279 | 2279 | await test_utils.openAndEnterChatRoom(_converse, 'lounge', 'localhost', 'dummy');
|
2280 | 2280 | const jid = 'lounge@localhost';
|
2281 | 2281 | const room = _converse.api.rooms.get(jid);
|
2282 |
| - const view = _converse.chatboxviews.get(jid); |
| 2282 | + const view = _converse.api.chatviews.get(jid); |
2283 | 2283 | const stanza = $pres({
|
2284 | 2284 | to: 'dummy@localhost/_converse.js-29092160',
|
2285 | 2285 |
|
|
2345 | 2345 | await test_utils.openAndEnterChatRoom(_converse, 'lounge', 'localhost', 'dummy');
|
2346 | 2346 | const room_jid = 'lounge@localhost';
|
2347 | 2347 | const room = _converse.api.rooms.get(room_jid);
|
2348 |
| - const view = _converse.chatboxviews.get(room_jid); |
| 2348 | + const view = _converse.api.chatviews.get(room_jid); |
2349 | 2349 | const textarea = view.el.querySelector('textarea.chat-textarea');
|
2350 | 2350 | expect(textarea.value).toBe('');
|
2351 | 2351 | view.keyPressed({
|
|
0 commit comments