Power Your Software Testing with AI Agents and Cloud
The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.
- TestMu AI (Formerly LambdaTest)
- /
- Use Cases
- /
- Test scheduling a card payment against its due date
Test scheduling a card payment against its due date
A date after the due date should be refused. Four steps check the boundary, then schedule inside it.
Published on:
Scheduling a card payment is a promise the customer makes to avoid interest. A scheduler that accepts a date after the due date lets them make that promise and still pay late.
This use case schedules on the Amrex clone, testing the boundary before the happy path.
Failure modes in this flow
The rule is a date comparison, and date comparisons are where off-by-one errors live.
- The amount follows the choice - selecting the statement balance populates $2,318.44.
- A late date is refused - the 30th is rejected against a due date of the 28th, with the reason stated.
- A valid date is accepted - the 26th schedules successfully with a reference.
- The record agrees - amount, type, date and funding account all listed together.
Testing the refusal first is what proves the comparison exists. A payment scheduled two days early tells you nothing about whether a payment two days late would also have been accepted.
Note: Checking a date boundary from the wrong side costs one extra step and covers the failure that actually incurs interest. Start on TestMu AI. Start for free
Writing the objective
The refusal is asserted with the due date named in the message, because an error that fires without explaining the constraint leaves the customer guessing at a valid date.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/amex-clone-app/payments?reset=true
max_steps: 45
tags: [american-express, banking, payments]
---
# Amrex 25.2: Card payment scheduling
Catalog objective: schedule a payment for the statement balance.
Key assertion: the scheduled payment carries the correct amount.
## Choose the statement balance
Choose "Statement balance" and verify "Payment amount" reads "$2,318.44".
## Verify a late date is refused
Set "Payment date" to "2026-09-30", click "Schedule the payment", and verify a red banner says that date is after the 2026-09-28 due date.
## Schedule it for a valid date
Set "Payment date" back to "2026-09-26", click "Schedule the payment", and verify a green banner titled "Payment scheduled" says $2,318.44 is scheduled for 2026-09-26 with reference "PMT-31840".
## Verify the scheduled payment
Verify the "Scheduled payments" card lists "$2,318.44" against "Statement balance · 2026-09-26 · Chaise Bank ••••8841" with a "Scheduled" badge.The scheduled record names the funding account as well as the amount, so a payment scheduled from the wrong account fails even though the figure is right.
The assertions in detail
A selection, a refusal, a schedule and the record.
| Step | What it proves |
|---|---|
| Choose the statement balance | The payment type populates the correct amount |
| Verify a late date is refused | A date after the due date is rejected and the rule is explained |
| Schedule it for a valid date | A date inside the window is accepted with a reference |
| Verify the scheduled payment | Amount, type, date, funding account and status are all recorded |
A scheduled payment that confirms but does not appear in the list is a payment the customer cannot cancel, which is why both are asserted.
Running it locally
kane-cli testmd run tests/american-express/payment-scheduling_test.mdAdd a test on the due date itself, since the boundary is whether that date counts as on time and that is the case the rule is most likely to get wrong.
Date rules shift with billing cycles rather than releases. Running Kane CLI in CI covers catching that drift, and generating the boundary cases covers producing the set.
Author
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.
Payment Scheduling 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




