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 adjusting a tip after an order is placed
Test adjusting a tip after an order is placed
Place an order at a five dollar tip, raise it to eight after delivery, and confirm the order record shows both the new value and that it changed.
Published on:
Adjusting a tip after delivery means editing an order that has already been paid for. It is one of the few flows in a consumer app that mutates a completed financial record, and the money involved is somebody's wages.
This use case places an order and then raises its tip on the Instacrate clone. Five steps, 222 seconds, all passed.
Failure modes in this flow
Editing a completed order has two failure modes, and only one of them is visible on the screen the shopper is looking at.
- The new value does not stick - the notice confirms $8.00 and the order still holds $5.00 underneath.
- The change is not marked - the order shows $8.00 with no indication it was adjusted after delivery, which removes the audit trail.
The final step asserts both: the tip reads $8.00 and a badge reads "Tip adjusted after delivery". The badge is the part a purely functional test would leave out, and it is what lets anyone later tell an original tip from a revised one.
Note: Flows that mutate a completed order are worth running on every release, because the failure is financial rather than cosmetic. TestMu AI gives you free runs to start. Start for free
Writing the objective
The first step compresses an entire order placement into one instruction, because the order is setup rather than subject. The four steps that follow each cover one part of the adjustment.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/instacart-clone-app?reset=true
max_steps: 50
tags: [instacart, grocery, tip]
---
# Instacrate 7.4: Tip adjustment
Catalog objective: adjust the tip after checkout from the order page.
Key assertion: the updated tip is reflected in the order total.
## Place an order first
Click "Add" on "Oat Milk, 64 oz", click "Go to checkout", click "Within 2 hours · 3:00pm - 5:00pm", type "4242 4242 4242 4242" into the card number field, click "$5.00" for the tip, then click "Place order" and verify the confirmation shows "Order placed".
## Open the order
Click "View order & adjust tip" and verify the orders page shows a tip of "$5.00".
## Open the tip editor
Click "Adjust tip" and verify a custom tip field appears.
## Raise the tip
Click "$8.00" and verify a notice appears reading "Tip updated to $8.00".
## Confirm the total moved with the tip
Verify the order now shows a tip of "$8.00" and a badge reading "Tip adjusted after delivery".The step ceiling is raised to 50, the highest in this set, since the flow has to complete a purchase before it can begin its actual work. Run the test with:
kane-cli testmd run tests/instacart/tip-adjustment_test.mdRunning it locally
Five passes. Placing the setup order took 76.7 seconds, roughly a third of the run, which is the price of a flow that needs a completed purchase before it starts.
---
test: ../tip-adjustment_test.md
status: passed
started: 2026-09-15T10:35:14.175Z
duration_s: 222
session_id: ff7d4b1e-ca95-40bf-bcd2-3fbbeca96def
---
# Instacrate 7.4: Tip adjustment - Result
## Place an order first ✓ passed (76.7s)
md5: 79290b97ddb7ed7464f51faaf22e1479
Click "Add" on "Oat Milk, 64 oz", click "Go to checkout", click "Within 2 hours · 3:00pm - 5:00pm", type "4242 4242 4242 4242" into the card number field, click "$5.00" for the tip, then click "Place order" and verify the confirmation shows "Order placed".
## Open the order ✓ passed (53.2s)
md5: aab8a2140ba2eda0a5441ff154ffc698
Click "View order & adjust tip" and verify the orders page shows a tip of "$5.00".
## Open the tip editor ✓ passed (22.4s)
md5: 2647c21cfbefa8ce4b34152c36745cd5
Click "Adjust tip" and verify a custom tip field appears.
## Raise the tip ✓ passed (35s)
md5: df9ddf6f3ade7db783966a77a8335539
Click "$8.00" and verify a notice appears reading "Tip updated to $8.00".
## Confirm the total moved with the tip ✓ passed (30.8s)
md5: fdf4c9f71afba76318e434a9d13d7327
Verify the order now shows a tip of "$8.00" and a badge reading "Tip adjusted after delivery".| Step | Result | Duration |
|---|---|---|
| Place an order first | Passed | 76.7s |
| Open the order | Passed | 53.2s |
| Open the tip editor | Passed | 22.4s |
| Raise the tip | Passed | 35s |
| Confirm the total moved with the tip | Passed | 30.8s |
A third of the run spent on setup is normal for a post-purchase flow and is the argument for running these tests unattended rather than by hand. Nobody places a grocery order to check a tip control twice a week.
Putting it in CI
You end up with coverage on a flow that changes a paid order, including the audit marker that makes the change traceable afterwards.
Any flow that edits a completed record deserves the same treatment: assert the new value and assert that the record knows it changed. Evidence based QA covers keeping proof of these runs, and asynchronous agent runs covers running long setup-heavy flows without waiting on them.
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.
Tip Adjustment 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




