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,6 @@
import { useEscapeKeyClose } from '@mezon/core';
import { resetClanLimitModalTrigger, useAppDispatch, useAppSelector } from '@mezon/store';
import { generateE2eId } from '@mezon/utils';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useModal } from 'react-modal-hook';
Expand Down Expand Up @@ -51,7 +52,12 @@ const ClanLimitModalContent = ({ type, clanCount, onClose }: ClanLimitModalProps
<div className='fixed inset-0 bg-black opacity-80' />
<div className='relative z-10 w-[440px] max-w-[90vw]' onClick={(e) => e.stopPropagation()}>
<div className='bg-theme-setting-primary pt-[16px] px-[16px] rounded-t-md'>
<div className='text-theme-primary-active text-[20px] font-semibold pb-[16px]'>{title}</div>
<div
className='text-theme-primary-active text-[20px] font-semibold pb-[16px]'
data-e2e={generateE2eId('clan_page.modal.limit_creation.title')}
>
{title}
</div>
<div className='pb-[20px] text-theme-primary text-[14px] leading-relaxed'>{bodyText}</div>
</div>
<div className='bg-theme-setting-nav flex justify-end items-center gap-4 p-[16px] text-[14px] font-medium rounded-b-md'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const SidebarClanItem = ({ option, active, onMouseDown, className = '', onClanCl
data-id={option?.id}
className={`relative h-[40px] ${className}`}
title={option?.clan_name}
data-e2e={generateE2eId('clan_page.side_bar.clan_item')}
>
<button onClick={handleClick} draggable="false">
<NavLinkComponent active={active}>
Expand Down
3 changes: 3 additions & 0 deletions libs/utils/src/lib/e2e-testing/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ export const DATA_E2E_IDENTIFIER = {
cancel: ''
}
},
limit_creation: {
title: ''
},
delete_category: {
button: {
delete: ''
Expand Down
Loading