diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a73c7581a..5100c53495 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ * Disable spellCheck/autoCorrect on non-spelling sensitive fields like usernames and channels ([#373](https://github.com/TryQuiet/quiet/issues/373)) * Fixes issue with reconnecting to peers on resume on iOS ([#2424](https://github.com/TryQuiet/quiet/issues/2424)) +* Fixes references to 'invite code' to be 'invite link' in UI ([#2441](https://github.com/TryQuiet/quiet/issues/2441)) + # Chores * Cleanup data directory at end of e2e tests diff --git a/packages/desktop/src/renderer/components/CreateJoinCommunity/JoinCommunity/JoinCommunity.test.tsx b/packages/desktop/src/renderer/components/CreateJoinCommunity/JoinCommunity/JoinCommunity.test.tsx index 6d3d270fc8..9d6b94520b 100644 --- a/packages/desktop/src/renderer/components/CreateJoinCommunity/JoinCommunity/JoinCommunity.test.tsx +++ b/packages/desktop/src/renderer/components/CreateJoinCommunity/JoinCommunity/JoinCommunity.test.tsx @@ -229,7 +229,7 @@ describe('join community', () => { /> ) - const input = screen.getByPlaceholderText('Invite code') + const input = screen.getByPlaceholderText('Invite link') const button = screen.getByText('Continue') await userEvent.type(input, url) diff --git a/packages/desktop/src/renderer/components/CreateJoinCommunity/community.dictionary.tsx b/packages/desktop/src/renderer/components/CreateJoinCommunity/community.dictionary.tsx index 50f3d29424..d3e506465e 100644 --- a/packages/desktop/src/renderer/components/CreateJoinCommunity/community.dictionary.tsx +++ b/packages/desktop/src/renderer/components/CreateJoinCommunity/community.dictionary.tsx @@ -62,8 +62,8 @@ export const JoinCommunityDictionary = (handleRedirection?: () => void): Perform } return { header: 'Join community', - label: 'Paste your invite code to join an existing community', - placeholder: 'Invite code', + label: 'Paste your invite link to join an existing community', + placeholder: 'Invite link', hint: '', button: 'Continue', field: inviteLinkField(), diff --git a/packages/desktop/src/renderer/components/LoadingPanel/LoadingPanel.tsx b/packages/desktop/src/renderer/components/LoadingPanel/LoadingPanel.tsx index 76afa9ce3c..6b0d0dc37d 100644 --- a/packages/desktop/src/renderer/components/LoadingPanel/LoadingPanel.tsx +++ b/packages/desktop/src/renderer/components/LoadingPanel/LoadingPanel.tsx @@ -35,7 +35,7 @@ const LoadingPanel = () => { if (isConnected) { if (currentCommunity && isChannelReplicated && owner && isOnlyOneUser) { const notification = new Notification('Community created!', { - body: 'Visit Settings for an invite code you can share.', + body: 'Visit Settings for an invite link you can share.', icon: '../../build' + '/icon.png', silent: true, }) diff --git a/packages/desktop/src/renderer/forms/fields/communityFields.ts b/packages/desktop/src/renderer/forms/fields/communityFields.ts index c278373780..957a4e78cd 100644 --- a/packages/desktop/src/renderer/forms/fields/communityFields.ts +++ b/packages/desktop/src/renderer/forms/fields/communityFields.ts @@ -29,7 +29,7 @@ export const inviteLinkField = (name = 'name'): FieldData => { label: '', name, type: 'password', - placeholder: 'Invite code', + placeholder: 'Invite link', }, validation: { required: FieldErrors.Required, diff --git a/packages/e2e-tests/src/selectors.ts b/packages/e2e-tests/src/selectors.ts index bd865d4f41..c80f8c3b26 100644 --- a/packages/e2e-tests/src/selectors.ts +++ b/packages/e2e-tests/src/selectors.ts @@ -281,9 +281,9 @@ export class JoinCommunityModal { await link.click() } - async typeCommunityCode(code: string) { - const communityNameInput = await this.driver.findElement(By.xpath('//input[@placeholder="Invite code"]')) - await communityNameInput.sendKeys(code) + async typeCommunityInviteLink(inviteLink: string) { + const communityNameInput = await this.driver.findElement(By.xpath('//input[@placeholder="Invite link"]')) + await communityNameInput.sendKeys(inviteLink) } async submit() { diff --git a/packages/e2e-tests/src/tests/multipleClients.test.ts b/packages/e2e-tests/src/tests/multipleClients.test.ts index 59fdf2ea94..042aa3dd52 100644 --- a/packages/e2e-tests/src/tests/multipleClients.test.ts +++ b/packages/e2e-tests/src/tests/multipleClients.test.ts @@ -151,7 +151,7 @@ describe('Multiple Clients', () => { const isJoinCommunityModal = await joinCommunityModal.element.isDisplayed() expect(isJoinCommunityModal).toBeTruthy() console.log({ invitationCode }) - await joinCommunityModal.typeCommunityCode(invitationCode) + await joinCommunityModal.typeCommunityInviteLink(invitationCode) await joinCommunityModal.submit() }) @@ -220,7 +220,7 @@ describe('Multiple Clients', () => { const isJoinCommunityModal = await joinCommunityModal.element.isDisplayed() expect(isJoinCommunityModal).toBeTruthy() console.log({ invitationCode }) - await joinCommunityModal.typeCommunityCode(invitationCode) + await joinCommunityModal.typeCommunityInviteLink(invitationCode) await joinCommunityModal.submit() }) @@ -426,7 +426,7 @@ describe('Multiple Clients', () => { const joinCommunityModal = new JoinCommunityModal(users.user1.app.driver) const isJoinCommunityModal = await joinCommunityModal.element.isDisplayed() expect(isJoinCommunityModal).toBeTruthy() - await joinCommunityModal.typeCommunityCode(invitationCode) + await joinCommunityModal.typeCommunityInviteLink(invitationCode) await joinCommunityModal.submit() }) it('Leave community - Guest registers new username', async () => { diff --git a/packages/e2e-tests/src/tests/userProfile.test.ts b/packages/e2e-tests/src/tests/userProfile.test.ts index f37014c651..eeaa00cb9c 100644 --- a/packages/e2e-tests/src/tests/userProfile.test.ts +++ b/packages/e2e-tests/src/tests/userProfile.test.ts @@ -175,7 +175,7 @@ describe('User Profile Feature', () => { const joinCommunityModal = new JoinCommunityModal(users.user1.app.driver) const isJoinCommunityModal = await joinCommunityModal.element.isDisplayed() expect(isJoinCommunityModal).toBeTruthy() - await joinCommunityModal.typeCommunityCode(invitationCode) + await joinCommunityModal.typeCommunityInviteLink(invitationCode) await joinCommunityModal.submit() })