Skip to content

Commit

Permalink
specified close button selector
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMilord committed Nov 28, 2024
1 parent 02e1a9f commit 3b0e1ef
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ AriaLiveRegion.mockImplementation(() => {
const selectors = {
notifications: '[data-test="notification"]',
initializationError: 'c-quantic-component-error',
notificationCloseButton: 'button',
};

const defaultOptions = {
Expand Down Expand Up @@ -242,7 +243,9 @@ describe('c-quantic-notifications', () => {
});

const firstNotificationCloseButton =
notificationsBeforeClose[0].querySelector('button');
notificationsBeforeClose[0].querySelector(
selectors.notificationCloseButton
);
firstNotificationCloseButton.click();
await flushPromises();

Expand Down

0 comments on commit 3b0e1ef

Please sign in to comment.