Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/MentionPopoverContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default function MentionPopoverContent({
<div className="px-3 py-2">
{typeof content === 'string' ? (
<div data-testid="user-not-found">
No user with username <span className="font-bold">{content}</span>{' '}
exists
User <span className="font-bold">{content}</span> does not exist or
does not have access to this group
</div>
) : (
<div className="flex flex-col gap-y-4">
Expand Down
5 changes: 4 additions & 1 deletion src/components/test/MentionPopoverContent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ describe('MentionPopoverContent', () => {
const userNotFound = wrapper.find('[data-testid="user-not-found"]');

assert.isTrue(userNotFound.exists());
assert.equal('No user with username @invalid exists', userNotFound.text());
assert.equal(
'User @invalid does not exist or does not have access to this group',
userNotFound.text(),
);
assert.isFalse(wrapper.exists('[data-testid="username"]'));
assert.isFalse(wrapper.exists('[data-testid="display-name"]'));
});
Expand Down