diff --git a/addons/web/static/src/xml/notification.xml b/addons/web/static/src/xml/notification.xml index 03ff4cd637b..42aab39f889 100644 --- a/addons/web/static/src/xml/notification.xml +++ b/addons/web/static/src/xml/notification.xml @@ -5,7 +5,7 @@
-
b
", "should display notification"); - assert.containsNone($notification, '.o_notification_close', "should not display the close button in "); + assert.containsOnce($notification, '.o_notification_close'); await waitCloseNotification(); assert.strictEqual($notification.is(':hidden'), true, "should hide the notification"); assert.strictEqual($('body .o_notification_manager .o_notification').length, 0, "should destroy the notification"); @@ -80,7 +80,7 @@ QUnit.module('Services', { await testUtils.nextMicrotaskTick(); var $notification = $('body .o_notification_manager .o_notification'); assert.strictEqual($notification.html().trim().replace(/\s+/g, ' '), - "
a
b
", + "
a
b
", "should display notification"); view.destroy(); });