diff --git a/addons/web/static/tests/services/notification_service_tests.js b/addons/web/static/tests/services/notification_service_tests.js index 04c7ea5e1ef..8a10b9f2df9 100644 --- a/addons/web/static/tests/services/notification_service_tests.js +++ b/addons/web/static/tests/services/notification_service_tests.js @@ -31,6 +31,11 @@ QUnit.module('Services', { }; }, afterEach: function () { + // The Notification Service has a side effect: it adds a div inside + // document.body. We could implement a cleanup mechanism for services, + // but this seems a little overkill since services are not supposed to + // be destroyed anyway. + $('.o_notification_manager').remove(); testUtils.mock.unpatch(Notification); } }, function () {