diff --git a/src/components/EventListCard/EventListCard.test.tsx b/src/components/EventListCard/EventListCard.test.tsx index 820e563957..366c1686b4 100644 --- a/src/components/EventListCard/EventListCard.test.tsx +++ b/src/components/EventListCard/EventListCard.test.tsx @@ -114,6 +114,8 @@ describe('Testing Event List Card', () => { userEvent.click(screen.getByTestId('card')); + userEvent.click(screen.getByTestId('showEventDashboardBtn')); + userEvent.click(screen.getByTestId('createEventModalCloseBtn')); await wait(); diff --git a/src/components/EventListCard/EventListCard.tsx b/src/components/EventListCard/EventListCard.tsx index 0ec3a62d6f..ad21205852 100644 --- a/src/components/EventListCard/EventListCard.tsx +++ b/src/components/EventListCard/EventListCard.tsx @@ -224,6 +224,7 @@ function eventListCard(props: InterfaceEventListCardProps): JSX.Element { className={styles.customButton} variant="success" onClick={openEventDashboard} + data-testid="showEventDashboardBtn" > {' '} Show Event Dashboard{' '}