Skip to content

Commit

Permalink
improves clickability test for new link
Browse files Browse the repository at this point in the history
  • Loading branch information
revgum committed Jul 6, 2021
1 parent f360a3e commit 2d2595e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/__tests__/StudentHolds.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ describe('<StudentHolds />', () => {
expect(await screen.findByText('1')).toBeInTheDocument();
expect(await screen.findByText('hold on your student account.')).toBeInTheDocument();
expect(await screen.findByText('pay was due 2 years ago')).toBeInTheDocument();
expect(await screen.findByText('View your holds')).toBeInTheDocument();
const more = await screen.findByText(/learn more about holds/i);
userEvent.click(more);
expect(mockGAEvent).toHaveBeenCalledTimes(1);
const view = await screen.findByText(/view your holds/i);
userEvent.click(view);
expect(mockGAEvent).toHaveBeenCalledTimes(2);
});

it('should render and have a multiple holds', async () => {
Expand Down

0 comments on commit 2d2595e

Please sign in to comment.