From 1641056f7cbbd9ab7efd577ad6f7b51e14060352 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 8 Dec 2020 11:57:07 -0800 Subject: [PATCH] Disable sorting on workbench --- .../QueryResults/QueryResults.test.tsx | 4 +- .../QueryResults/QueryResultsBody.tsx | 6 +- .../__snapshots__/QueryResults.test.tsx.snap | 2396 ++++------------- .../QueryResultsBody.test.tsx.snap | 1796 +++--------- 4 files changed, 1007 insertions(+), 3195 deletions(-) diff --git a/workbench/public/components/QueryResults/QueryResults.test.tsx b/workbench/public/components/QueryResults/QueryResults.test.tsx index 087ffdad89..248c2d5b25 100644 --- a/workbench/public/components/QueryResults/QueryResults.test.tsx +++ b/workbench/public/components/QueryResults/QueryResults.test.tsx @@ -104,7 +104,7 @@ describe(" spec", () => { await fireEvent.click(getAllByRole('tab')[5]); // It tests sorting - await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]); + // await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]); // It tests pagination await fireEvent.click(getAllByLabelText('Page 2 of 2')[0]); @@ -210,7 +210,7 @@ describe(" spec", () => { await fireEvent.click(getAllByRole('tab')[5]); // It tests sorting - await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]); + // await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]); // It tests pagination await fireEvent.click(getAllByLabelText('Page 2 of 2')[0]); diff --git a/workbench/public/components/QueryResults/QueryResultsBody.tsx b/workbench/public/components/QueryResults/QueryResultsBody.tsx index 33df6214b9..9a34bd568b 100644 --- a/workbench/public/components/QueryResults/QueryResultsBody.tsx +++ b/workbench/public/components/QueryResults/QueryResultsBody.tsx @@ -601,9 +601,9 @@ class QueryResultsBody extends React.Component {label} diff --git a/workbench/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap b/workbench/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap index 1d09d78f7d..f625b404e8 100644 --- a/workbench/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap +++ b/workbench/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap @@ -351,722 +351,409 @@ exports[` spec renders the component to test tabs down > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5126,722 +4813,409 @@ exports[` spec renders the component to test tabs down > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -9994,722 +9368,409 @@ exports[` spec renders the component with mock query re > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -14769,722 +13830,409 @@ exports[` spec renders the component with mock query re > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/workbench/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap b/workbench/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap index af8fc1f50e..1999a6b457 100644 --- a/workbench/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap +++ b/workbench/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap @@ -127,721 +127,409 @@ exports[` spec renders component with mock QueryResults data > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5109,721 +4797,409 @@ exports[` spec renders component with mock QueryResults data > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -10243,721 +9619,409 @@ exports[` spec renders component with mock QueryResults data > - + class="euiTableCellContent__text" + /> + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +