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 a card feed and the cashback rate it applies

Three categories, three different reward rates, and a new purchase that has to be categorised before it can be rewarded.

Published on:

Cashback depends on a merchant being categorised correctly, which is a classification problem sitting underneath a rewards promise. A restaurant categorised as transit pays nothing and the customer has no way to tell why.

This use case checks the rules and then a live purchase on the Venmoo card feed.

The flow under test

The test covers the stated rule, existing transactions on both sides of it, and a new one that has to be classified.

  • The rules are published - three percent dining, one percent groceries, nothing on transit.
  • An earning transaction - groceries with a cashback badge.
  • A non-earning transaction - transit explicitly badged as no cashback.
  • A new purchase - dining at $58.40 earning $1.75, which is three percent.

The transit assertion is the one that proves the rule is enforced rather than universally applied. A card that pays cashback on everything satisfies every positive assertion in the file.

Note

Note: Asserting a category that earns nothing is what distinguishes an enforced rewards rule from a blanket one. Start on TestMu AI. Start for free

The test file

The new purchase is asserted for its merchant, amount, category and cashback together, since the cashback is only correct if the category it was derived from is.

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

# Venmoo 22.4: Card transaction feed

Catalog objective: verify a card purchase appears with its cashback tag.
Key assertion: the transaction is listed with the correct merchant.

## Verify the existing card feed
Verify the transactions list shows "Corner Grocer" at "$42.18" in the Groceries category with a cashback badge, and "Metro Transit" at "$2.75" in Transit with a "No cashback" badge.

## Verify the cashback rules are stated
Verify the rewards card states "3% dining · 1% groceries · no cashback on transit".

## Make a card purchase
Click "Simulate a $58.40 purchase at Nonna's Trattoria" and verify a new transaction appears at the top of the feed.

## Verify the new transaction carries the right merchant and cashback tag
Verify the newest row reads "Nonna's Trattoria" at "$58.40" in the Dining category with a cashback badge of "$1.75", which is 3% of the purchase.

The file states the arithmetic explicitly, that $1.75 is three percent of $58.40, so the expected figure can be checked by a reader without recomputing it.

Step by step coverage

Existing state, the rules, an action, and the result.

StepWhat it proves
Verify the existing card feedTransactions carry categories and correct cashback badges
Verify the cashback rules are statedThe three rates are published to the customer
Make a card purchaseA new transaction appears at the top of the feed
Verify the new transaction carries the right merchant and cashback tagMerchant, amount, category and a correctly calculated reward

Asserting the new transaction appears at the top of the feed is a small ordering check that catches a transaction inserted correctly but sorted wrongly.

Next-generation test execution with TestMu AI

Running it

kane-cli testmd run tests/venmo/card-transaction-feed_test.md

Add a purchase in the transit category, since earning nothing is a result that has to be produced deliberately rather than by omission.

Classification rules drift as merchant data changes underneath them. Running Kane CLI in CI covers regular checks, and Kane CLI as a QA agent covers building a rewards suite.

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 Cashback 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