From 3b0e1ef485924b5df543cb2f854c9fe8cdb7ee33 Mon Sep 17 00:00:00 2001 From: simonmilord Date: Thu, 28 Nov 2024 15:09:08 -0500 Subject: [PATCH] specified close button selector --- .../__tests__/quanticNotifications.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/quantic/force-app/main/default/lwc/quanticNotifications/__tests__/quanticNotifications.test.js b/packages/quantic/force-app/main/default/lwc/quanticNotifications/__tests__/quanticNotifications.test.js index 3c026ee522..20e9ed8e14 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticNotifications/__tests__/quanticNotifications.test.js +++ b/packages/quantic/force-app/main/default/lwc/quanticNotifications/__tests__/quanticNotifications.test.js @@ -43,6 +43,7 @@ AriaLiveRegion.mockImplementation(() => { const selectors = { notifications: '[data-test="notification"]', initializationError: 'c-quantic-component-error', + notificationCloseButton: 'button', }; const defaultOptions = { @@ -242,7 +243,9 @@ describe('c-quantic-notifications', () => { }); const firstNotificationCloseButton = - notificationsBeforeClose[0].querySelector('button'); + notificationsBeforeClose[0].querySelector( + selectors.notificationCloseButton + ); firstNotificationCloseButton.click(); await flushPromises();