Skip to content

Commit

Permalink
refactor(notice): update test id for collection title
Browse files Browse the repository at this point in the history
  • Loading branch information
byhow committed Jul 28, 2024
1 parent 24b9af1 commit 59f45ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/enums/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export enum TEST_ID {
NOTICE_CRYPTO_WALLET_AIRDROP = 'notice/crypto-wallet-airdrop',
NOTICE_CRYPTO_WALLET_CONNECTED = 'notice/crypto-wallet-connected',
NOTICE_OFFICIAL_ANNOUNCEMENT = 'notice/official-announcement',
NOTICE_COLLECTION_TITLE = 'notice/collection/title',
// me
ME_WALLET_TRANSACTIONS_ITEM = 'me/wallet/transactions/item',
ME_WALLET_TRANSACTIONS_ITEM_AMOUNT = 'me/wallet/transactions/item/amount',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Notice/NoticeCollectionTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const NoticeCollectionTitle = ({
<Link {...path}>
<a
className={styles.noticeArticleTitle}
data-test-id={TEST_ID.NOTICE_ARTICLE_TITLE}
data-test-id={TEST_ID.NOTICE_COLLECTION_TITLE}
>
{truncateTitle(notice.target.title, lang)}
</a>
Expand Down

0 comments on commit 59f45ea

Please sign in to comment.