From 7a9a8bcd2e8d657d2dbdc7e483f0c9506114f184 Mon Sep 17 00:00:00 2001 From: Aman Mahajan Date: Mon, 16 Oct 2023 21:19:06 -0500 Subject: [PATCH] Fix sorting tests --- test/sorting.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sorting.test.tsx b/test/sorting.test.tsx index e725ada35c..f01f4c8461 100644 --- a/test/sorting.test.tsx +++ b/test/sorting.test.tsx @@ -35,9 +35,9 @@ function setup() { } function testSortColumns(expectedValue: readonly SortColumn[]) { - expect(JSON.parse(screen.getByTestId('sortColumnsValue').textContent!)).toStrictEqual( - expectedValue - ); + expect( + JSON.parse(screen.getByTestId('sortColumnsValue', { suggest: false }).textContent!) + ).toStrictEqual(expectedValue); } test('should not sort if sortable is false', async () => {