Skip to content

Commit 4efab87

Browse files
Added testIds on toast details (#221)
* Added testId * Added testId * Updated changelog
1 parent ec6b6b0 commit 4efab87

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [[0.0.28](https://github.com/multiversx/mx-sdk-dapp-ui/pull/220)] - 2025-09-19
1111

12+
- [Added testIds on toast details](https://github.com/multiversx/mx-sdk-dapp-ui/pull/221)
1213
- [Updated icon and styles on toast](https://github.com/multiversx/mx-sdk-dapp-ui/pull/218)
1314
- [Added exports for individual components](https://github.com/multiversx/mx-sdk-dapp-ui/pull/217)
1415
- [Updated warning banner on ledger confirm screen](https://github.com/multiversx/mx-sdk-dapp-ui/pull/216)

src/components/functional/toasts-list/components/transaction-toast/components/transaction-toast-details/transaction-toast-details.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { faChevronDown } from '@fortawesome/free-solid-svg-icons';
22
import type { JSX } from '@stencil/core';
33
import { Component, h, Prop, State } from '@stencil/core';
44
import type { ITransactionListItem } from 'components/visual/transaction-list-item/transaction-list-item.types';
5+
import { DataTestIdsEnum } from 'constants/dataTestIds.enum';
56

67
@Component({
78
tag: 'mvx-transaction-toast-details',
@@ -60,7 +61,9 @@ export class TransactionToastDetails {
6061
icon={faChevronDown}
6162
class={`transaction-details-status-icon ${this.isExpanded ? 'rotate-up' : ''}`}
6263
></mvx-fa-icon>
63-
<span class="transaction-details-status-text">{this.processedTransactionsStatus}</span>
64+
<span data-testid={DataTestIdsEnum.transactionDetailsStatus} class="transaction-details-status-text">
65+
{this.processedTransactionsStatus}
66+
</span>
6467
</div>
6568

6669
<div

src/components/visual/trim/trim.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export class Trim {
7777
class={{ trim: true, [this.class]: Boolean(this.class) }}
7878
>
7979
<div
80+
data-testid={DataTestIdsEnum.trimFullAddress}
8081
ref={this.handleFullWidthTrimElementReference.bind(this)}
8182
class={{ 'trim-full': true, 'visible': !this.shouldTrim }}
8283
>

src/constants/dataTestIds.enum.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export enum DataTestIdsEnum {
3737
transactionToastTitle = 'transactionToastTitle',
3838
transactionNftBadge = 'transactionNftBadge',
3939
transactionActionFormattedAmount = 'transactionActionFormattedAmount',
40+
transactionDetailsStatus = 'transactionDetailsStatus',
4041
trim = 'trim',
42+
trimFullAddress = 'trimFullAddress',
4143
walletConnectLoading = 'walletConnectLoading',
4244
walletConnectQrCode = 'walletConnectQrCode',
4345
walletConnetModalTitle = 'walletConnetModalTitle',

0 commit comments

Comments
 (0)