From b0fe70a8151f4afeb7b801cf1b3cd140113dd5fc Mon Sep 17 00:00:00 2001 From: Lucas Leblow Date: Thu, 18 Jan 2024 07:36:26 -0800 Subject: [PATCH] fix: Make community name field text visible on create community page --- .../CreateCommunity/CreateCommunity.test.tsx | 22 +++++++++++++++++++ .../CreateCommunity/CreateCommunity.tsx | 1 + 2 files changed, 23 insertions(+) diff --git a/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.test.tsx b/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.test.tsx index 69a46114ce..4e00751d08 100644 --- a/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.test.tsx +++ b/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.test.tsx @@ -285,4 +285,26 @@ describe('Create community', () => { expect(handleRedirection).toBeCalled() expect(handleCommunityAction).not.toBeCalled() }) + + it('has visible community name text', async () => { + const { store } = await prepareStore({ + [StoreKeys.Modals]: { + ...new ModalsInitialState(), + [ModalName.createCommunityModal]: { open: true }, + }, + }) + + renderComponent( + <> + + + , + store + ) + + const dictionary = CreateCommunityDictionary() + const createCommunityInput = screen.getByPlaceholderText(dictionary.placeholder) + + expect(createCommunityInput).toHaveAttribute('type', 'text') + }) }) diff --git a/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.tsx b/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.tsx index c98a06b44e..006c3add8e 100644 --- a/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.tsx +++ b/packages/desktop/src/renderer/components/CreateJoinCommunity/CreateCommunity/CreateCommunity.tsx @@ -50,6 +50,7 @@ const CreateCommunity = () => { isConnectionReady={isConnected} isCloseDisabled={!currentCommunity} hasReceivedResponse={Boolean(currentIdentity && !currentIdentity.userCertificate)} + revealInputValue={true} /> ) }