From b0c9f1abfae18a0012d4d50cf6a36d6dd4f25fb8 Mon Sep 17 00:00:00 2001 From: firelemons Date: Sat, 7 Oct 2023 09:53:49 -0500 Subject: [PATCH] filled out test to toggle from user dismissable state --- app/javascript/__tests__/notifier.test.js | 6 ++++++ 1 file changed, 6 insertions(+) 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)