diff --git a/src/components/datagrid/controls/__snapshots__/column_sorting.test.tsx.snap b/src/components/datagrid/controls/__snapshots__/column_sorting.test.tsx.snap index dc946709b82..f2bf4d04429 100644 --- a/src/components/datagrid/controls/__snapshots__/column_sorting.test.tsx.snap +++ b/src/components/datagrid/controls/__snapshots__/column_sorting.test.tsx.snap @@ -157,6 +157,7 @@ exports[`useDataGridColumnSorting columnSorting [React 16] renders a toolbar but aria-pressed="true" class="euiButtonGroupButton euiButtonGroupButton-isSelected emotion-euiButtonDisplay-s-defaultMinWidth-euiButtonGroupButton-fill-text" data-test-subj="euiDataGridColumnSorting-sortColumn-columnA-asc" + title="Low-High" type="button" > { ); expect( - getByTestSubject( - 'euiDataGridColumnSorting-sortColumn-columnA-asc' - )?.querySelector('[data-text]')?.textContent + getByTestSubject('euiDataGridColumnSorting-sortColumn-columnA-asc') + .title ).toEqual('A-Z'); expect( - getByTestSubject( - 'euiDataGridColumnSorting-sortColumn-columnA-desc' - )?.querySelector('[data-text]')?.textContent + getByTestSubject('euiDataGridColumnSorting-sortColumn-columnA-desc') + .title ).toEqual('Z-A'); }); @@ -133,15 +131,13 @@ describe('EuiDataGridColumnSortingDraggable', () => { ); expect( - getByTestSubject( - 'euiDataGridColumnSorting-sortColumn-columnA-asc' - )?.querySelector('[data-text]')?.textContent + getByTestSubject('euiDataGridColumnSorting-sortColumn-columnA-asc') + .title ).toEqual('False-True'); expect( - getByTestSubject( - 'euiDataGridColumnSorting-sortColumn-columnA-desc' - )?.querySelector('[data-text]')?.textContent + getByTestSubject('euiDataGridColumnSorting-sortColumn-columnA-desc') + .title ).toEqual('True-False'); }); });