From fbc58426381e394a9070a0ef6d82b4596f72eaa5 Mon Sep 17 00:00:00 2001 From: "trinh.truongthiphuong" Date: Tue, 30 Sep 2025 13:16:51 +0700 Subject: [PATCH 1/2] mark e2e to flow create public voice event --- .../ModalCreate/eventInfoModal.tsx | 20 ++++++++---- .../EventChannelModal/ModalCreate/index.tsx | 1 + .../ModalCreate/itemEventManagement.tsx | 18 +++++------ .../ModalCreate/locationModal.tsx | 10 +++--- .../StartEvent/ListEventManagement.tsx | 7 ++-- .../ChannelList/EventChannelModal/index.tsx | 8 +++-- libs/utils/src/lib/e2e-testing/constants.ts | 32 +++++++++++++++++++ 7 files changed, 72 insertions(+), 24 deletions(-) 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')} />
-
+

{t('fields.startDate.title')}

@@ -220,7 +221,7 @@ const EventInfoModal = (props: EventInfoModalProps) => { />

-
+

{t('fields.startTime.title')}

@@ -229,7 +230,7 @@ const EventInfoModal = (props: EventInfoModalProps) => {

-
+

{t('fields.endDate.title')}

@@ -245,7 +246,7 @@ const EventInfoModal = (props: EventInfoModalProps) => { />

-
+

{t('fields.endTime.title')}

@@ -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) => (

{t('fields.description.title')}

-
+