Skip to content

Commit

Permalink
fix: improved test coverage for src/components/EventListCard/EventLis…
Browse files Browse the repository at this point in the history
…tCard.tsx (#1142)
  • Loading branch information
MahendraDani authored Dec 6, 2023
1 parent 7b084e9 commit 5f1145b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/EventListCard/EventListCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/components/EventListCard/EventListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ function eventListCard(props: InterfaceEventListCardProps): JSX.Element {
className={styles.customButton}
variant="success"
onClick={openEventDashboard}
data-testid="showEventDashboardBtn"
>
{' '}
Show Event Dashboard{' '}
Expand Down

0 comments on commit 5f1145b

Please sign in to comment.