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
Expand Up @@ -15,7 +15,7 @@ import {
useAppSelector
} from '@mezon/store';
import { Icons, Image, InputField, TextArea } from '@mezon/ui';
import { checkIsThread, IChannel, ValidateSpecialCharacters, ValidateURL } from '@mezon/utils';
import { checkIsThread, generateE2eId, IChannel, ValidateSpecialCharacters, ValidateURL } from '@mezon/utils';
import { unwrapResult } from '@reduxjs/toolkit';
import { ModalSaveChanges } from 'libs/components/src/lib/components';
import Dropdown from 'libs/ui/src/lib/DropDown';
Expand Down Expand Up @@ -304,7 +304,7 @@ const OverviewChannel = (props: OverviewChannelProps) => {

return (
<div className="overflow-y-auto flex flex-col flex-1 shrink w-1/2 pt-[94px] sbm:pb-7 text-theme-primary bg-theme-setting-primary sbm:pr-[10px] sbm:pl-[40px] p-4 overflow-x-hidden min-w-full sbm:min-w-[700px] 2xl:min-w-[900px] max-w-[740px] hide-scrollbar">
<div className=" text-[15px]">
<div className=" text-[15px]" data-e2e={generateE2eId(`clan_page.channel_list.settings.overview`)}>
<h3 className="mb-4 font-bold text-xl text-theme-primary-active">{t('overview.title')}</h3>
<p className="text-xs font-bold uppercase mb-2">{isThread ? t('fields.threadName.title') : t('fields.channelName.title')}</p>
<InputField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Icons } from '@mezon/ui';
import { generateE2eId } from '@mezon/utils';

export type ModalExitProps = {
onClose: () => void;
Expand All @@ -16,6 +17,7 @@ const ExitSetting = (props: ModalExitProps) => {
<div
onClick={handleClose}
className="rounded-full p-[10px] border-2 border-theme-primary text-theme-primary cursor-pointer text-theme-primary-hover"
data-e2e={generateE2eId('clan_page.settings.button.exit')}
>
<Icons.CloseButton className="w-4 " />
</div>
Expand Down
6 changes: 6 additions & 0 deletions libs/utils/src/lib/e2e-testing/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export const DATA_E2E_IDENTIFIER = {
}
},
settings: {
button: {
exit: ''
},
integrations: {
create_clan_webhook_button: '',
new_clan_webhook_button: '',
Expand Down Expand Up @@ -224,6 +227,9 @@ export const DATA_E2E_IDENTIFIER = {
},
panel: {
item: ''
},
settings: {
overview: ''
}
}
},
Expand Down
Loading