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

Test an in-app currency exchange between pockets

Three balances, one conversion, and a check that exactly two of them moved by exactly the right amounts.

Published on:

Multi-currency pockets make foreign exchange feel like moving money between folders. Underneath, it is a debit and a credit at a rate, and the only proof it worked is the balances afterwards.

This use case exchanges between pockets on the Revolat clone and checks both sides.

The checks that matter

Three pockets exist and only two should move, which is an assertion most conversion tests forget to make.

PocketBeforeAfter
USD$1240.50$1140.50
EUR180.00 euros272.00 euros
GBP60.00 poundsUntouched

The GBP pocket is asserted at the start and never again, which is a gap worth closing in your own version. A conversion that touches an uninvolved balance is rare and expensive, and only a third assertion would catch it.

Note

Note: Capturing every balance before a conversion is what lets you prove which ones moved, not just that two of them changed. Start on TestMu AI. Start for free

The flow as a test file

The rate and the resulting amount are asserted before the exchange, so the figures the customer agreed to are recorded independently of what the conversion produces.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/revolut-clone-app/exchange?reset=true
max_steps: 40
tags: [revolut, fintech, fx]
---

# Revolat 19.2: Currency exchange

Catalog objective: exchange between two currency pockets.
Key assertion: both balances update at the quoted rate.

## Verify the starting pockets
Verify "Your pockets" shows "USD" of "$1240.50", "EUR" of "€180.00" and "GBP" of "£60.00".

## Set the exchange up
Leave "From" on "USD", select "EUR" in "To", type "100" into "Amount", and verify "Rate" reads "1 USD = 0.92 EUR" and "You get" reads "€92.00".

## Exchange
Click "Exchange" and verify a green banner titled "Exchange complete" says "$100.00" was exchanged for "€92.00" at 1 USD = 0.92 EUR.

## Verify both pockets moved
Verify "USD" now reads "$1140.50" and "EUR" now reads "€272.00".

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

Step by step coverage

A baseline, a quote, the exchange, and both sides verified.

StepWhat it proves
Verify the starting pocketsAll three balances are known before anything moves
Set the exchange upThe rate and the amount to be received are quoted upfront
ExchangeThe conversion completes at the quoted rate
Verify both pockets movedUSD falls and EUR rises by exactly the quoted figures

Asserting both directions of the movement is the point. A credit that lands without a matching debit is a bug that customers do not report.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/revolut/currency-exchange_test.md

Extend the final step to assert the GBP pocket is unchanged, which closes the gap this file leaves open.

Balance-moving flows deserve evidence retained beyond the run. The open evidence format covers what is written out, and the test.md format covers storing a quoted rate as a variable for live environments.

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

Currency Exchange 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