+
-
{title}
- {content}
+
+ {title}
+
+
+ {content}
+
diff --git a/libs/components/src/lib/components/PanelChannel/ItemPanel.tsx b/libs/components/src/lib/components/PanelChannel/ItemPanel.tsx
index 832b5e2dd6..6a2e0dadd8 100644
--- a/libs/components/src/lib/components/PanelChannel/ItemPanel.tsx
+++ b/libs/components/src/lib/components/PanelChannel/ItemPanel.tsx
@@ -1,4 +1,5 @@
import { Icons } from '@mezon/ui';
+import { generateE2eId } from '@mezon/utils';
type ItemPanelProps = {
children: string;
@@ -36,6 +37,7 @@ const ItemPanel = ({
disabled={disabled}
onClick={onClick}
className={`flex flex-col justify-center w-full rounded-sm bg-item-hover pr-2 ${danger ? 'hover:bg-[#f67e882a]' : ''}`}
+ data-e2e={generateE2eId('clan_page.channel_list.panel.item')}
>
-
+
diff --git a/libs/utils/src/lib/e2e-testing/constants.ts b/libs/utils/src/lib/e2e-testing/constants.ts
index 9a47388de9..1673cf4a7b 100644
--- a/libs/utils/src/lib/e2e-testing/constants.ts
+++ b/libs/utils/src/lib/e2e-testing/constants.ts
@@ -85,7 +85,8 @@ export const DATA_E2E_IDENTIFIER = {
},
button: {
add_clan: '',
- add_channel: ''
+ add_channel: '',
+ events: ''
}
},
modal: {
@@ -125,11 +126,42 @@ export const DATA_E2E_IDENTIFIER = {
confirm: '',
cancel: ''
}
+ },
+ create_event: {
+ button_create: '',
+ next: '',
+ upload: {
+ image_cover_input: ''
+ }
}
},
settings: {
+ integrations: {
+ create_clan_webhook_button: '',
+ new_clan_webhook_button: '',
+ navigate_webhook_button: ''
+ },
sidebar: {
- delete: ''
+ delete: '',
+ item: ''
+ },
+ onboarding: {
+ button: {
+ enable_onboarding: '',
+ add_resources: '',
+ clan_guide: ''
+ }
+ },
+ community: {
+ button: {
+ enable_community: ''
+ }
+ },
+ emoji: {
+ upload: ''
+ },
+ voice_sticker: {
+ button_upload: ''
},
modal: {
delete_clan: {
@@ -146,6 +178,17 @@ export const DATA_E2E_IDENTIFIER = {
input: {
clan_name: ''
}
+ },
+ upload: {
+ clan_logo_input: '',
+ clan_banner_input: '',
+ emoji_input: '',
+ clan_webhook_avatar_input: '',
+ onboarding_resource_input: '',
+ community_banner_input: '',
+ voice_sticker_input: {
+ error: ''
+ }
}
},
channel_list: {
@@ -159,6 +202,24 @@ export const DATA_E2E_IDENTIFIER = {
},
thread_item: {
name: ''
+ },
+ panel: {
+ item: ''
+ }
+ }
+ },
+ channel_setting_page: {
+ side_bar: {
+ item: ''
+ },
+ webhook: {
+ button: {
+ create_webhook: '',
+ new_webhook: '',
+ view_webhook: ''
+ },
+ input: {
+ avatar_channel_webhook: ''
}
}
},
@@ -323,6 +384,13 @@ export const DATA_E2E_IDENTIFIER = {
username: ''
},
pin_message: ''
+ },
+ modal: {
+ too_many_upload: '',
+ validate_file: {
+ title: '',
+ content: ''
+ }
}
};
type DotNestedKeys = T extends object