- Call `_initialize` after tests have run Since the tests call `teardDown`, which removes all chatboxes. - Open controlbox when navigating to panel
@@ -16,6 +16,7 @@
afterEach(function () {
test_utils.closeControlBox();
converse.connection = original_connection;
+ converse._initialize();
});
it("is not available unless allow_registration=true", function () {
@@ -85,6 +85,7 @@
};
utils.openRoomsPanel = function () {
+ utils.openControlBox();
var cbview = converse.chatboxviews.get('controlbox');
var $tabs = cbview.$el.find('#controlbox-tabs');
$tabs.find('li').last().find('a').click();