From 8d26241d3b67a46723ff4587b81afbfea1537f87 Mon Sep 17 00:00:00 2001 From: Javier Pedemonte Date: Thu, 25 Jul 2024 11:45:17 -0500 Subject: [PATCH] test: add another test --- .../DocumentPreview/__tests__/DocumentPreview.test.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/discovery-react-components/src/components/DocumentPreview/__tests__/DocumentPreview.test.tsx b/packages/discovery-react-components/src/components/DocumentPreview/__tests__/DocumentPreview.test.tsx index 231b3b8b..e1216403 100644 --- a/packages/discovery-react-components/src/components/DocumentPreview/__tests__/DocumentPreview.test.tsx +++ b/packages/discovery-react-components/src/components/DocumentPreview/__tests__/DocumentPreview.test.tsx @@ -252,7 +252,10 @@ describe('DocumentPreview', () => { ); // evidence PDF rendered - const elem = await screen.findByText('ART EFFECTS LIMITED', {}, { timeout: 5000 }); + let elem = await screen.findByText('ART EFFECTS LIMITED', {}, { timeout: 5000 }); + expect(elem).toBeInTheDocument(); + // check that 58 pages were found + elem = await screen.findByText('58 pages', { exact: false }); expect(elem).toBeInTheDocument(); }, THIRTY_SECONDS