diff --git a/apps/admin/frontend/src/components/reporting/tally_report_viewer.test.tsx b/apps/admin/frontend/src/components/reporting/tally_report_viewer.test.tsx index 7ef0bef92f..885d7e97f3 100644 --- a/apps/admin/frontend/src/components/reporting/tally_report_viewer.test.tsx +++ b/apps/admin/frontend/src/components/reporting/tally_report_viewer.test.tsx @@ -388,5 +388,7 @@ test('exporting report PDF', async () => { expect(pdfResult.getByTestId('total-ballot-count')).toHaveTextContent('10'); }); + userEvent.click(screen.getButton('Close')); + jest.useRealTimers(); });