diff --git a/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/eventInfoModal.tsx b/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/eventInfoModal.tsx index 929d1fa42f..a52bce61e2 100644 --- a/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/eventInfoModal.tsx +++ b/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/eventInfoModal.tsx @@ -201,10 +201,11 @@ const EventInfoModal = (props: EventInfoModalProps) => { value={contentSubmit.topic} className={`font-[400] rounded w-full outline-none text-[15px]border border-theme-primary p-2 focus:outline-none focus:border-white-500 bg-theme-input ${appearanceTheme === 'light' ? 'lightEventInputAutoFill' : ''}`} maxLength={Number(process.env.NX_MAX_LENGTH_NAME_ALLOWED) * 2} + data-e2e={generateE2eId('clan_page.modal.create_event.event_info.input.event_topic')} />
✱
@@ -220,7 +221,7 @@ const EventInfoModal = (props: EventInfoModalProps) => { />✱
@@ -229,7 +230,7 @@ const EventInfoModal = (props: EventInfoModalProps) => {✱
@@ -245,7 +246,7 @@ const EventInfoModal = (props: EventInfoModalProps) => { />✱
@@ -260,6 +261,7 @@ const EventInfoModal = (props: EventInfoModalProps) => { className={`cursor-pointer block w-full bg-theme-input bg-option-theme rounded p-2 font-normal text-sm tracking-wide outline-none border-none ${appearanceTheme === 'light' ? 'customScrollLightMode' : 'app-scroll'}`} value={selectedFrequency} onChange={handleFrequencyChange} + data-e2e={generateE2eId('clan_page.modal.create_event.event_info.input.event_frequency')} > {frequencies.map((frequency) => (+
{actualEventStatus.isUpcoming ? timeUntilEvent || formatTimeI18n(event?.start_time || start) : actualEventStatus.isOngoing @@ -238,13 +238,13 @@ const ItemEventManagement = (props: ItemEventManagementProps) => { : formatTimeI18n(event?.start_time || start)}
{isClanEvent && ( -{t('eventCreator:eventDetail.clanEvent')}
+{t('eventCreator:eventDetail.clanEvent')}
)} {isChannelEvent && ( -{t('eventCreator:eventDetail.channelEvent')}
+{t('eventCreator:eventDetail.channelEvent')}
)} {isPrivateEvent && ( -{t('eventCreator:eventDetail.privateEvent')}
+{t('eventCreator:eventDetail.privateEvent')}
)}{topic}
+{topic}
{channelVoice?.channel_label}
+{channelVoice?.channel_label}
); })()} @@ -416,7 +416,7 @@ const ItemEventManagement = (props: ItemEventManagementProps) => {{t('eventCreator:eventDetail.audienceConsists')}{' '} {isThread ? t('eventCreator:eventDetail.thread') : t('eventCreator:eventDetail.channel')} - {textChannel.channel_label} + {textChannel.channel_label}
) : isClanEvent ? ( diff --git a/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/locationModal.tsx b/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/locationModal.tsx index ee89a8e597..b425902759 100644 --- a/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/locationModal.tsx +++ b/libs/components/src/lib/components/ChannelList/EventChannelModal/ModalCreate/locationModal.tsx @@ -3,7 +3,7 @@ import type { ChannelsEntity } from '@mezon/store'; import { selectTheme } from '@mezon/store'; import { Icons } from '@mezon/ui'; import type { ContenSubmitEventProps } from '@mezon/utils'; -import { OptionEvent, filterOptionReactSelect } from '@mezon/utils'; +import { OptionEvent, filterOptionReactSelect, generateE2eId } from '@mezon/utils'; import { ChannelType } from 'mezon-js'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -80,7 +80,7 @@ const LocationModal = (props: LocationModalProps) => { const options = voicesChannel.map((voice) => ({ value: voice.id, label: ( -{t('screens.eventType.subtitle')}
@@ -278,7 +278,9 @@ const TitleOptionEvent = ({{desc}
{event?.title}
++ {event?.title} +
{currentClan?.clan_name}