From 86394034486ee20f50a91bb52bb792695be7ab07 Mon Sep 17 00:00:00 2001 From: Damir Abdulganiev Date: Thu, 20 Jan 2022 12:39:23 +0300 Subject: [PATCH] [Resolves #1221] Unclear parameters for Consumers` Search. Inconsistency of Search line on Consumers page. (#1429) * Changed Search component placeholder * Updates test Co-authored-by: Damir Abdulganiev Co-authored-by: Roman Zabaluev --- .../src/components/ConsumerGroups/List/List.tsx | 2 +- .../components/ConsumerGroups/List/__test__/List.spec.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kafka-ui-react-app/src/components/ConsumerGroups/List/List.tsx b/kafka-ui-react-app/src/components/ConsumerGroups/List/List.tsx index f5b006a1c6..9cd3769585 100644 --- a/kafka-ui-react-app/src/components/ConsumerGroups/List/List.tsx +++ b/kafka-ui-react-app/src/components/ConsumerGroups/List/List.tsx @@ -22,7 +22,7 @@ const List: React.FC = () => { diff --git a/kafka-ui-react-app/src/components/ConsumerGroups/List/__test__/List.spec.tsx b/kafka-ui-react-app/src/components/ConsumerGroups/List/__test__/List.spec.tsx index 1bcb34daac..0ac9c0ceed 100644 --- a/kafka-ui-react-app/src/components/ConsumerGroups/List/__test__/List.spec.tsx +++ b/kafka-ui-react-app/src/components/ConsumerGroups/List/__test__/List.spec.tsx @@ -30,7 +30,10 @@ describe('List', () => { describe('when searched', () => { it('renders only searched consumers', () => { - userEvent.type(screen.getByPlaceholderText('Search'), 'groupId1'); + userEvent.type( + screen.getByPlaceholderText('Search by Consumer Group ID'), + 'groupId1' + ); expect(screen.getByText('groupId1')).toBeInTheDocument(); expect(screen.getByText('groupId2')).toBeInTheDocument(); });