From 0d60e46f2e58dbdf2fc32d8bcc667535951928b0 Mon Sep 17 00:00:00 2001 From: Jan Timpe Date: Fri, 29 Sep 2023 14:46:26 -0400 Subject: [PATCH] fix tests --- .../components/SubmissionHistory/SubmissionHistory.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tdrs-frontend/src/components/SubmissionHistory/SubmissionHistory.test.js b/tdrs-frontend/src/components/SubmissionHistory/SubmissionHistory.test.js index 9f7566f12..abf370523 100644 --- a/tdrs-frontend/src/components/SubmissionHistory/SubmissionHistory.test.js +++ b/tdrs-frontend/src/components/SubmissionHistory/SubmissionHistory.test.js @@ -406,6 +406,11 @@ describe('SubmissionHistory', () => { expect(screen.queryByText('Status')).toBeInTheDocument() expect(screen.queryByText('test1.txt')).toBeInTheDocument() - expect(screen.queryByText(status || 'Pending')).toBeInTheDocument() + + if (status && status !== 'Pending') { + expect(screen.queryByText(status)).toBeInTheDocument() + } else { + expect(screen.queryAllByText('Pending')).toHaveLength(2) + } }) })