From d5eefa72a21175d21a2766045b14e4ba50f92649 Mon Sep 17 00:00:00 2001 From: abbyhu2000 Date: Thu, 14 Sep 2023 17:07:09 +0000 Subject: [PATCH] add test ids Signed-off-by: abbyhu2000 --- .../data_grid/data_grid_table_docview_inspect_button.tsx | 1 + .../components/data_grid/data_grid_table_flyout.tsx | 2 +- .../components/doc_viewer_links/doc_viewer_links.tsx | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/plugins/discover/public/application/components/data_grid/data_grid_table_docview_inspect_button.tsx b/src/plugins/discover/public/application/components/data_grid/data_grid_table_docview_inspect_button.tsx index df5e691240e3..88341aad1b08 100644 --- a/src/plugins/discover/public/application/components/data_grid/data_grid_table_docview_inspect_button.tsx +++ b/src/plugins/discover/public/application/components/data_grid/data_grid_table_docview_inspect_button.tsx @@ -22,6 +22,7 @@ export const DocViewInspectButton = ({ rowIndex }: EuiDataGridCellValueElementPr onClick={() => setInspectedHit(isCurrentInspected ? undefined : currentInspected)} iconType={isCurrentInspected ? 'minimize' : 'inspect'} aria-label={inspectHintMsg} + data-test-subj={`docTableExpandToggleColumn-${rowIndex}`} /> ); diff --git a/src/plugins/discover/public/application/components/data_grid/data_grid_table_flyout.tsx b/src/plugins/discover/public/application/components/data_grid/data_grid_table_flyout.tsx index 957679a2faef..8cfeaf9795af 100644 --- a/src/plugins/discover/public/application/components/data_grid/data_grid_table_flyout.tsx +++ b/src/plugins/discover/public/application/components/data_grid/data_grid_table_flyout.tsx @@ -40,7 +40,7 @@ export function DataGridFlyout({ // TODO: replace EuiLink with doc_view_links registry // TODO: Also move the flyout higher in the react tree to prevent redrawing the table component and slowing down page performance return ( - +

Document Details

diff --git a/src/plugins/discover/public/application/components/doc_viewer_links/doc_viewer_links.tsx b/src/plugins/discover/public/application/components/doc_viewer_links/doc_viewer_links.tsx index ea4262814bb4..5e79c8b88e33 100644 --- a/src/plugins/discover/public/application/components/doc_viewer_links/doc_viewer_links.tsx +++ b/src/plugins/discover/public/application/components/doc_viewer_links/doc_viewer_links.tsx @@ -27,7 +27,12 @@ export function DocViewerLinks(renderProps: DocViewLinkRenderProps) { {listItems.map((item, index) => ( - + {item.label}