From a262cec45ef2abc8e8da0f6c2649820e0cb107ac Mon Sep 17 00:00:00 2001 From: Claudia Malzer Date: Wed, 6 Nov 2024 15:09:23 +0100 Subject: [PATCH] fix test --- src/routes/AgreementLinesRoute/AgreementLinesRoute.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/AgreementLinesRoute/AgreementLinesRoute.test.js b/src/routes/AgreementLinesRoute/AgreementLinesRoute.test.js index 66368d0c0..32c70d5d0 100644 --- a/src/routes/AgreementLinesRoute/AgreementLinesRoute.test.js +++ b/src/routes/AgreementLinesRoute/AgreementLinesRoute.test.js @@ -51,8 +51,9 @@ describe('AgreementLinesRoute', () => { }); test('renders the agreementLines component', () => { - const { getByTestId } = renderComponent; - expect(getByTestId('agreementLines')).toBeInTheDocument(); + const { getAllByTestId } = renderComponent; + const agreementLinesElements = getAllByTestId('agreementLines'); + expect(agreementLinesElements.length).toBeGreaterThan(0); }); }); });