Skip to content

Commit

Permalink
fix: Make community name field text visible on create community page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblow authored Jan 19, 2024
1 parent a76d565 commit 70697ad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<>
<JoinCommunity />
<CreateCommunity />
</>,
store
)

const dictionary = CreateCommunityDictionary()
const createCommunityInput = screen.getByPlaceholderText(dictionary.placeholder)

expect(createCommunityInput).toHaveAttribute('type', 'text')
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const CreateCommunity = () => {
isConnectionReady={isConnected}
isCloseDisabled={!currentCommunity}
hasReceivedResponse={Boolean(currentIdentity && !currentIdentity.userCertificate)}
revealInputValue={true}
/>
)
}
Expand Down

0 comments on commit 70697ad

Please sign in to comment.