From 3411a4c5c5f87682fbe16c1a867c7fd476212bfd Mon Sep 17 00:00:00 2001 From: Milan Cerovsky Date: Fri, 23 Aug 2024 06:33:32 +0200 Subject: [PATCH] Test hotfixes --- .../balances/integration/BalancesViewIntegrationTest.kt | 5 ++++- .../electriccoin/zcash/ui/screen/send/SendViewTestSetup.kt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/balances/integration/BalancesViewIntegrationTest.kt b/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/balances/integration/BalancesViewIntegrationTest.kt index 569b0dcb..a4a75187 100644 --- a/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/balances/integration/BalancesViewIntegrationTest.kt +++ b/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/balances/integration/BalancesViewIntegrationTest.kt @@ -10,6 +10,7 @@ import cash.z.ecc.android.sdk.Synchronizer import cash.z.ecc.android.sdk.model.PercentDecimal import co.electriccoin.zcash.test.UiTestPrerequisites import co.electriccoin.zcash.ui.common.model.WalletSnapshot +import co.electriccoin.zcash.ui.design.theme.ZcashTheme import co.electriccoin.zcash.ui.fixture.WalletSnapshotFixture import co.electriccoin.zcash.ui.screen.balances.BalancesTag import co.electriccoin.zcash.ui.screen.balances.BalancesTestSetup @@ -42,7 +43,9 @@ class BalancesViewIntegrationTest : UiTestPrerequisites() { val testSetup = newTestSetup(walletSnapshot) restorationTester.setContent { - testSetup.DefaultContent() + ZcashTheme { + testSetup.DefaultContent() + } } assertNotEquals(WalletSnapshotFixture.STATUS, testSetup.getWalletSnapshot().status) diff --git a/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/send/SendViewTestSetup.kt b/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/send/SendViewTestSetup.kt index 7023f7fd..9b6e78ec 100644 --- a/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/send/SendViewTestSetup.kt +++ b/ui-lib/src/androidTest/java/co/electriccoin/zcash/ui/screen/send/SendViewTestSetup.kt @@ -130,7 +130,7 @@ class SendViewTestSetup( monetarySeparators = monetarySeparators, value = "", fiatValue = "", - isTransparentRecipient = false, + isTransparentOrTextRecipient = false, exchangeRateState = ExchangeRateState.OptedOut ), setMemoState = {},