diff options
author | Florian Dold <florian@dold.me> | 2024-03-07 20:53:07 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-07 20:53:07 +0100 |
commit | 6ee95626c319c7f9e5b6d1ac4273d0de5db39ae0 (patch) | |
tree | d4898d03c24fee76a7e7df4682df25707dac874c /packages/taler-harness | |
parent | 51d91b719b5213d2cb49482f980a4e08ff88893a (diff) | |
download | wallet-core-6ee95626c319c7f9e5b6d1ac4273d0de5db39ae0.tar.xz |
harness: finish wire fees testv0.9.4
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts b/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts index 40880064b..618b8a144 100644 --- a/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts +++ b/packages/taler-harness/src/integrationtests/test-wallet-wirefees.ts @@ -22,6 +22,7 @@ import { MerchantApiClient, MerchantContractTerms, PreparePayResultType, + TransactionMajorState, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures.js"; @@ -163,7 +164,22 @@ export async function runWalletWirefeesTest(t: GlobalTestState) { console.log(`amountEffective: ${preparePayResult.amountEffective}`); + t.assertAmountEquals(preparePayResult.amountEffective, "TESTKUDOS:6.4"); + + await walletClient.call(WalletApiOperation.ConfirmPay, { + transactionId: preparePayResult.transactionId, + }); + await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {}); + + const payTxn = await walletClient.call( + WalletApiOperation.GetTransactionById, + { + transactionId: preparePayResult.transactionId, + }, + ); + + t.assertTrue(payTxn.txState.major === TransactionMajorState.Done); } runWalletWirefeesTest.suites = ["wallet"]; |