fix: Issue with transaction history test

This commit is contained in:
Blazebrain 2024-09-28 03:29:51 +01:00
parent 7d97ddbdec
commit cc00fda5a3

View file

@ -13,7 +13,6 @@ import 'package:cake_wallet/view_model/dashboard/transaction_list_item.dart';
import 'package:cw_core/crypto_currency.dart'; import 'package:cw_core/crypto_currency.dart';
import 'package:cw_core/sync_status.dart'; import 'package:cw_core/sync_status.dart';
import 'package:cw_core/transaction_direction.dart'; import 'package:cw_core/transaction_direction.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
@ -170,12 +169,9 @@ class TransactionsPageRobot {
); );
//* ======Confirm it displays the properly formatted title=========== //* ======Confirm it displays the properly formatted title===========
final transactionType = dashboardViewModel.type == WalletType.ethereum && final transactionType = dashboardViewModel.getTransactionType(item.transaction);
item.transaction.evmSignatureName == 'approval'
? ' (${item.transaction.evmSignatureName})'
: '';
final title = item.formattedTitle + item.formattedStatus + ' $transactionType'; final title = item.formattedTitle + item.formattedStatus + transactionType;
commonTestCases.findWidgetViaDescendant( commonTestCases.findWidgetViaDescendant(
of: find.byKey(ValueKey(keyId)), of: find.byKey(ValueKey(keyId)),