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 CLICards

Test freezing a card and proving payments decline

A freeze that changes a badge is not a freeze. Four steps put a payment through it in both states.

Published on:

Freezing a card is a security promise made to someone who thinks they have lost it. The interface updating is not the promise. Payments actually being refused is.

This use case freezes a card on the Revolat clone and then tries to spend on it.

Failure modes in this flow

The only meaningful test of a card control is a transaction attempted in each state, which is what separates this from a toggle test.

  • Frozen state is reported - a notice that new payments will be declined.
  • A payment is actually declined - with the merchant, the amount and a reason naming the freeze.
  • Unfrozen state is reported - a notice that payments work again.
  • A payment is actually approved - and no new declined entry is added.

That final clause matters. A card that approves the payment while still logging a decline has a reporting bug that would show a customer a transaction they did not have, which erodes exactly the trust the freeze feature exists to build.

Note

Note: Driving a simulated purchase in both states turns a state toggle into a behaviour check for the cost of two extra steps. Try it on TestMu AI. Try free!

Writing the objective

The declined entry is asserted with its merchant, amount and reason, so a decline logged without a cause is distinguishable from one correctly attributed to the freeze.

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

# Revolat 19.1: Card freeze

Catalog objective: freeze the virtual card, confirm declines, then unfreeze.
Key assertion: the state toggles and the card is usable again.

## Freeze the card
Verify the card badge reads that the card is active, then click the freeze button and verify a notice says the card is frozen and new payments will be declined.

## Verify a payment is really declined
Click "Simulate purchase" and verify a notice reads "Payment declined - the card is frozen." and the declined list shows a "Metro Grocer" entry at "$24.60" with a reason of "Card is frozen".

## Unfreeze the card
Click the unfreeze button and verify a notice says the card is unfrozen and payments work again.

## Verify the card works again
Click "Simulate purchase" and verify a notice reads "Payment approved - $24.60 at Metro Grocer." with no new declined entry added.

The fourth step asserts both the approval and the absence of a new decline, which is a positive and a negative assertion about the same action.

The assertions in detail

Two states, each with a claim and a proof.

StepWhat it proves
Freeze the cardThe freeze is applied and reported
Verify a payment is really declinedA purchase is refused with the freeze named as the reason
Unfreeze the cardThe freeze is lifted and reported
Verify the card works againA purchase is approved and no spurious decline is logged

Testing the return path is as important as the freeze. A card that cannot be unfrozen strands a customer who found their wallet, and support cannot fix it from their side.

Next-generation test execution with TestMu AI

Running it locally

kane-cli testmd run tests/revolut/card-freeze_test.md

Add a variant covering a recurring payment against a frozen card, since subscriptions are often exempted deliberately and that exemption needs to be intentional.

Security controls are worth verifying behaviourally rather than by state. Evidence based QA covers retaining the proof, and running Kane CLI in CI covers checking it on every build.

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

Card Freeze 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