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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getShowName, useColorsRoleById } from '@mezon/core';
import { DEFAULT_MESSAGE_CREATOR_NAME_DISPLAY_COLOR, IMessageWithUser, convertTimeStringI18n } from '@mezon/utils';
import { DEFAULT_MESSAGE_CREATOR_NAME_DISPLAY_COLOR, IMessageWithUser, convertTimeStringI18n, generateE2eId } from '@mezon/utils';
import { ChannelStreamMode } from 'mezon-js';
import { useTranslation } from 'react-i18next';
import getPendingNames from './usePendingNames';
Expand Down Expand Up @@ -56,6 +56,7 @@ const BaseMessageHead = ({
? (userRolesClan?.highestPermissionRoleColor ?? DEFAULT_MESSAGE_CREATOR_NAME_DISPLAY_COLOR)
: DEFAULT_MESSAGE_CREATOR_NAME_DISPLAY_COLOR
}}
data-e2e={generateE2eId('base_profile.display_name')}
>
{mode === ChannelStreamMode.STREAM_MODE_CHANNEL || mode === ChannelStreamMode.STREAM_MODE_THREAD ? nameShowed : priorityName}
{userRolesClan?.highestPermissionRoleIcon &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { generateE2eId } from '@mezon/utils';

type UserDescriptionProps = {
title: string;
detail: string;
Expand All @@ -10,7 +12,9 @@ const UserDescription = ({ title, detail }: UserDescriptionProps) => {
<div className="w-full border-b-theme-primary p-2"></div>
<div className="flex flex-col">
<div className="font-bold tracking-wider text-xs pt-2 text-theme-primary-active">{title}</div>
<div className="font-normal tracking-wider text-xs one-line pt-2">{detail}</div>
<div className="font-normal tracking-wider text-xs one-line pt-2" data-e2e={generateE2eId('mention.text.about_me')}>
{detail}
</div>
</div>
</>
)
Expand Down
5 changes: 4 additions & 1 deletion libs/utils/src/lib/e2e-testing/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export const DATA_E2E_IDENTIFIER = {
},
mention: {
input: '',
selected_file: ''
selected_file: '',
text: {
about_me: ''
}
},
discussion: {
box: {
Expand Down
Loading