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 a limit order staying pending below market
Test a limit order staying pending below market
A limit below the market price should not fill. Four steps prove it stays pending and says what it is waiting for.
Published on:
A limit order is a promise not to trade above a price. The way it fails is by filling anyway, which nobody notices until a position exists that should not.
This use case places a limit well below market on the Robinhud clone and checks the order stays where it belongs.
Failure modes in this flow
The correct outcome here is that nothing happens, which is harder to assert than a fill and easier to get wrong.
- The order type changes the form - choosing a limit order reveals a limit price field.
- The interface explains the rule - a hint that a price below the last traded price stays pending.
- The order does not fill - a pending banner rather than a filled one, at the limit price and not the market price.
- The order book agrees - a row with a pending badge naming the price it waits for.
Asserting the pending banner shows $200.00, the limit, rather than $241.05, the market price, is the detail that distinguishes a correctly parked order from one that recorded the wrong figure.
Note: Testing that an action does not happen is as ordinary as testing that it does, which makes negative trading assertions cheap to include. Try it on TestMu AI. Try free!
Writing the objective
The last traded price is asserted in the first step so the limit chosen in step three is demonstrably below market rather than assumed to be.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/robinhood-clone-app/trade?reset=true
max_steps: 45
tags: [robinhood, fintech, trading]
---
# Robinhud 16.2: Limit order
Catalog objective: place a limit buy below market and verify the pending state.
Key assertion: the open order is listed with its limit price.
## Open an order ticket
Type "TSLA" into "Search ticker or name", click "Trade" on the TSLA row, and verify "Last price" reads "$241.05".
## Switch to a limit order
Choose "Limit order" and verify a "Limit price" field appears with a hint that a price below "$241.05" stays pending.
## Place a limit below market
Set "Shares" to "1", type "200" into "Limit price", and click "Review and buy".
## Verify the order stays pending
Verify an amber banner titled "Order pending" shows a status of "Pending" at "$200.00", and the Orders list has an "ORD-501" row with a "Pending" badge noting it is waiting for TSLA to reach "$200.00".The final assertion reads the order book, which is the record a trader checks the next morning and a different surface from the banner that appeared at submission.
The assertions in detail
Two steps establishing conditions, one action, one verification on the record.
| Step | What it proves |
|---|---|
| Open an order ticket | The ticket opens for TSLA at a known last price |
| Switch to a limit order | The limit price field appears with its pending rule stated |
| Place a limit below market | A below-market limit is accepted for submission |
| Verify the order stays pending | The order is pending at the limit price and listed as waiting in the book |
Both the banner and the order book are asserted. An order that shows pending on screen and is absent from the book is an order the trader cannot cancel.
Running it locally
kane-cli testmd run tests/robinhood/limit-order_test.mdPair this with the market order file. Together they cover the two order types most retail flows offer and the two outcomes that must not be confused.
Order type variants differ by a few values, which makes them worth generating rather than writing. Generating the variants covers that, and running Kane CLI in CI covers executing the set on every build.
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.
Limit Order 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




