From c3199517cffdf075a6a5ade13e2eff9e9588a647 Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Fri, 12 Jul 2024 12:07:22 +0200 Subject: [PATCH] chore: restore test-id for e2e tests --- .../src/components/document-list/visible-field-toggle.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/compass-components/src/components/document-list/visible-field-toggle.tsx b/packages/compass-components/src/components/document-list/visible-field-toggle.tsx index b45dd1c19f2..0c21397299c 100644 --- a/packages/compass-components/src/components/document-list/visible-field-toggle.tsx +++ b/packages/compass-components/src/components/document-list/visible-field-toggle.tsx @@ -91,6 +91,7 @@ const VisibleFieldsToggle: React.FunctionComponent<{ className={cx(linkButtonStyles, buttonClassName)} onClick={onShowClick} aria-label={showButtonText} + data-testid="show-more-fields-button" > {showButtonText} @@ -103,6 +104,7 @@ const VisibleFieldsToggle: React.FunctionComponent<{ className={cx(linkButtonStyles, buttonClassName)} onClick={onHideClick} aria-label={hideButtonText} + data-testid="hide-fields-button" > {hideButtonText}