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 CLIHistory

Test a transaction history filter on two criteria

Stack a month filter and a category filter, then open the one surviving row and check it satisfies both.

Published on:

Transaction history exists to stop people calling support. It only works if the filters are trustworthy, because a customer who cannot find a transaction concludes it is missing rather than filtered out.

This use case stacks two filters on the PhonePey history and checks what survives.

The contract this flow keeps

A filter makes a claim about everything it hides as well as everything it shows, and only the count makes that claim checkable.

  • Unfiltered - six transactions, establishing the full set.
  • One filter - two transactions for August, with a total and both merchants named.
  • Two filters - one transaction for September in groceries, with its own total.
  • The survivor - a single row that satisfies both criteria independently.

Asserting the count at every stage is what makes each filter verifiable. A filter that returns the right row among several wrong ones satisfies a presence check completely.

Note

Note: Asserting a result count alongside the rows turns a filter test into a claim about what was correctly excluded. Try it on TestMu AI. Try free!

The objective in plain English

The totals are asserted alongside the counts, since a filtered total that does not correspond to the filtered rows is a separate defect from a wrong row set.

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

# PhonePey 21.3: History filter

Catalog objective: filter the history by month and category.
Key assertion: the filtered list matches both criteria.

## Verify the unfiltered history
With "All" selected for both filters, verify "Transactions shown" reads 6.

## Filter by month
Select "2026-08" in "Month" and verify "Transactions shown" reads 2 with a "Total" of "₹2,160.00", listing "Uber India" and "Adani Electricity".

## Add a category filter
Select "2026-09" in "Month" and "Groceries" in "Category", then verify "Transactions shown" reads 1 with a "Total" of "₹2,140.00".

## Verify the single row matches both criteria
Verify the only row is "BigBazaar" at "₹2,140.00", which is both in 2026-09 and in Groceries.

The final step names the surviving row and states why it qualifies on both criteria, which keeps the expectation and its justification together in the file.

Assertion by assertion

A baseline and three progressively narrower checks.

StepWhat it proves
Verify the unfiltered historyThe full set is six transactions
Filter by monthA single filter narrows correctly with a matching total
Add a category filterTwo filters combine rather than replacing each other
Verify the single row matches both criteriaThe survivor genuinely satisfies month and category

Changing the month while adding the category in the third step is deliberate. It proves the filters combine rather than one silently overriding the other.

Next-generation test execution with TestMu AI

Putting it in CI

kane-cli testmd run tests/phonepe/history-filter_test.md

Add a combination that should return nothing, since an empty state is a filter outcome and often an unhandled one.

Filters are where a plain English test reads most like the requirement it came from. From a PRD to evidence covers that alignment, and Kane CLI as a QA agent covers where support-facing surfaces fit in a 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

History Filter 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