Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIFX & Transfers

Test a balance conversion moving both sides exactly

Convert a hundred dollars to euros and check both balances moved by precisely the amounts on screen.

Published on:

A multi-currency balance is two accounts that move in opposite directions at the same instant. The conversion either debits and credits exactly the amounts shown, or the customer has lost money somewhere in a rounding decision.

This use case converts between balances on the Wize clone and checks both sides afterwards.

Failure modes in this flow

The only honest test of a conversion is arithmetic performed against the balances before and after, which is why the first and last steps mirror each other.

BalanceBeforeAfterMovement
USD$2,480.40$2,380.40Down exactly $100.00
EUR310.00 euros402.00 eurosUp exactly 92.00 euros

Both movements have to match the quoted figures exactly. A conversion that debits $100.00 and credits 91.99 euros displays a correct rate and keeps a cent, which is a rounding bug that only an assertion on the resulting balance will find.

Note

Note: Capturing the starting balances in the first step is what lets the final assertion prove a movement rather than a value. Try it on TestMu AI. Try free!

Writing the objective

The rate and the resulting amount are asserted before the conversion is performed, so the figures the customer agreed to are recorded independently of what the conversion then does.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/wise-clone-app/balances?reset=true
max_steps: 40
tags: [wise, payments, balances]
---

# Wize 15.4: Balance conversion

Catalog objective: convert between two balances at the shown rate.
Key assertion: the balances update by exactly the converted amounts.

## Verify the starting balances
Verify "Your balances" shows "USD" of "$2,480.40" and "EUR" of "€310.00".

## Set the conversion up
Leave "From" on "USD" and "To" on "EUR", replace "Amount" with "100", and verify "Rate" reads "1 USD = 0.92 EUR" and "You'll get" reads "€92.00".

## Convert
Click "Convert" and verify a green banner titled "Conversion complete" says "$100.00" was converted to "€92.00" at 1 USD = 0.92 EUR.

## Verify the balances moved by exactly those amounts
Verify "USD" now reads "$2,380.40" and "EUR" now reads "€402.00".

The confirmation banner is asserted with the rate included, which means a conversion executed at a different rate than the one quoted fails at that step rather than being inferred later from the balances.

The assertions in detail

A baseline, a quote, an action, and a verification of both accounts.

StepWhat it proves
Verify the starting balancesBoth balances are known before anything moves
Set the conversion upThe rate and the amount to be received are quoted upfront
ConvertThe conversion completes at the rate that was quoted
Verify the balances moved by exactly those amountsBoth accounts moved by precisely the quoted figures

Three places to catch a discrepancy: the quote, the confirmation and the balances. A conversion bug that survives all three is not a display problem.

Next-generation test execution with TestMu AI

Running it locally

kane-cli testmd run tests/wise/balance-conversion_test.md

This file pins a fixed rate against seeded data. Against a live environment, capture the quoted rate as a variable and assert the balances against that captured value.

Storing a value mid-run and asserting against it later is the pattern for anything rate-dependent. The test.md format covers variables, and evidence based QA covers retaining proof for a balance-moving operation.

Author

...

Bhawana

Blogs: 75

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Balance Conversion FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests