diff --git a/app/javascript/__tests__/notifier.test.js b/app/javascript/__tests__/notifier.test.js index b7e1adb9fc..c6a2dc52aa 100644 --- a/app/javascript/__tests__/notifier.test.js +++ b/app/javascript/__tests__/notifier.test.js @@ -565,6 +565,12 @@ describe('Notifications', () => { test('will remove the dismiss button for the user if is present', (done) => { $(() => { try { + expect(notificationsElement[0].innerHTML).toContain(notificationDefaultMessage) + expect(notification.notificationElement.children('button').length).toBe(1) + + notification.toggleUserDismissable() + + expect(notification.notificationElement.children('button').length).toBe(0) done() } catch (error) { done(error)