diff --git a/test/app-tests/joining.js b/test/app-tests/joining.js index d25c359061..0f6cf91b88 100644 --- a/test/app-tests/joining.js +++ b/test/app-tests/joining.js @@ -53,13 +53,16 @@ describe('joining a room', function () { httpBackend = new MockHttpBackend(); jssdk.request(httpBackend.requestFn); parentDiv = document.createElement('div'); - document.body.appendChild(parentDiv); + + // uncomment this to actually add the div to the UI, to help with + // debugging (but slow things down) + // document.body.appendChild(parentDiv); }); afterEach(function() { if (parentDiv) { ReactDOM.unmountComponentAtNode(parentDiv); - document.body.removeChild(parentDiv); + parentDiv.remove(); parentDiv = null; } httpBackend.verifyNoOutstandingRequests();