From cc00fda5a32b45c836224dd0b6986fcda5c9561d Mon Sep 17 00:00:00 2001 From: Blazebrain Date: Sat, 28 Sep 2024 03:29:51 +0100 Subject: [PATCH] fix: Issue with transaction history test --- integration_test/robots/transactions_page_robot.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/integration_test/robots/transactions_page_robot.dart b/integration_test/robots/transactions_page_robot.dart index 3625727b7..40a49928f 100644 --- a/integration_test/robots/transactions_page_robot.dart +++ b/integration_test/robots/transactions_page_robot.dart @@ -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/sync_status.dart'; import 'package:cw_core/transaction_direction.dart'; -import 'package:cw_core/wallet_type.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:intl/intl.dart'; @@ -170,12 +169,9 @@ class TransactionsPageRobot { ); //* ======Confirm it displays the properly formatted title=========== - final transactionType = dashboardViewModel.type == WalletType.ethereum && - item.transaction.evmSignatureName == 'approval' - ? ' (${item.transaction.evmSignatureName})' - : ''; + final transactionType = dashboardViewModel.getTransactionType(item.transaction); - final title = item.formattedTitle + item.formattedStatus + ' $transactionType'; + final title = item.formattedTitle + item.formattedStatus + transactionType; commonTestCases.findWidgetViaDescendant( of: find.byKey(ValueKey(keyId)),