From 4e9dc08b0b49569a97fcf5562b18be96fd20d463 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 19 Jan 2014 07:02:18 +0200 Subject: [PATCH] Clean up after running tests, by closing chatboxes. --- spec/chatbox.js | 4 ++++ spec/chatroom.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/spec/chatbox.js b/spec/chatbox.js index 0afaf86ff..8547ed805 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -19,6 +19,10 @@ utils.openContactsPanel(); }); + afterEach(function () { + utils.closeAllChatBoxes(); + }); + it("is created when you click on a roster item", $.proxy(function () { var i, $el, click, jid, view; // openControlBox was called earlier, so the controlbox is diff --git a/spec/chatroom.js b/spec/chatroom.js index b31fe8714..36bea218f 100644 --- a/spec/chatroom.js +++ b/spec/chatroom.js @@ -14,6 +14,10 @@ utils.createNewChatRoom('lounge', 'dummy'); }); + afterEach(function () { + utils.closeAllChatBoxes(); + }); + it("shows users currently present in the room", $.proxy(function () { var chatroomview = this.chatboxesview.views['lounge@muc.localhost'], $participant_list;