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 multi-store cart with separate fees and slots
Test a multi-store cart with separate fees and slots
Two stores, two service fees, two delivery windows, and a check that each one stayed attached to the right cart.
Published on:
A cart that spans two stores is really two carts wearing one interface. Each has its own fee, its own delivery window and its own fulfilment, and the interface has to keep them apart while presenting them together.
This use case builds a two-store cart on the Instacrate grocery clone and checks that nothing leaked between them. Five steps, 185 seconds, all passed.
The flow under test
The failure mode in a multi-store cart is not that it breaks. It is that the two stores start sharing something they should not, and the interface looks entirely normal while it happens.
- Grouping - the panel reports two stores and names both, rather than merging the items into one list.
- Independent fees - GreenLeaf at $3.99 and BulkBarn at $5.49, two different numbers on the same page.
- Independent windows - an afternoon slot on one store and an evening slot on the other, each selected in its own card.
The final step is the strongest assertion in the file. Selecting a different window per store and then checking both remain selected in their own cards is what proves the selection handler is scoped to a store rather than to the page.
Note: Kane CLI targets a control by the card it sits in, so a per-store selector does not need a positional selector or an index. Start running flows like this on TestMu AI. Start for free
The test file
Each store card is referenced by its name, and the slot is referenced by the label a shopper reads. The test never needs to know that there are two structurally identical cards on the page.
---
mode: testing
url: https://my-testing-repo-main.vercel.app/instacart-clone-app?reset=true
max_steps: 45
tags: [instacart, grocery, multi-store]
---
# Instacrate 7.1: Multi-store cart
Catalog objective: add items from two stores and verify separate delivery slots.
Key assertion: each store cart has its own slot and fee.
## Add an item from the first store
Click "Add" on "Organic Strawberries, 1 lb" and verify the carts panel shows "GreenLeaf Market".
## Add an item from a second store
Click "Add" on "Coffee Beans, 2 lb" and verify the carts panel shows "Your carts (2 stores)" with both "GreenLeaf Market" and "BulkBarn Wholesale".
## Open checkout
Click "Go to checkout" and verify the checkout page shows "2 stores · each delivers separately".
## Confirm each store has its own fees
Verify the GreenLeaf Market card shows a service fee of "$3.99" and the BulkBarn Wholesale card shows a service fee of "$5.49".
## Confirm each store picks its own window
Click "Within 2 hours · 3:00pm - 5:00pm" in the GreenLeaf Market card, click "This evening · 6:00pm - 8:00pm" in the BulkBarn Wholesale card, and verify both options are selected in their own store cards.Run the test with:
kane-cli testmd run tests/instacart/multi-store-cart_test.mdThe run
Five passes. The fee comparison was the cheapest step at 24.9 seconds, since it asserts two values against a checkout page that is already open.
---
test: ../multi-store-cart_test.md
status: passed
started: 2026-09-15T10:27:01.603Z
duration_s: 185
session_id: 076d6b55-a2ab-4506-bb54-3403a893e9ea
---
# Instacrate 7.1: Multi-store cart - Result
## Add an item from the first store ✓ passed (32.4s)
md5: 450d503e242545989a75fd9902b8a431
Click "Add" on "Organic Strawberries, 1 lb" and verify the carts panel shows "GreenLeaf Market".
## Add an item from a second store ✓ passed (34.6s)
md5: 86101415600e9682d8e8e27fcd4f985e
Click "Add" on "Coffee Beans, 2 lb" and verify the carts panel shows "Your carts (2 stores)" with both "GreenLeaf Market" and "BulkBarn Wholesale".
## Open checkout ✓ passed (34.3s)
md5: 05fa0ba2ac5f998b9cf8fce0515b16c3
Click "Go to checkout" and verify the checkout page shows "2 stores · each delivers separately".
## Confirm each store has its own fees ✓ passed (24.9s)
md5: 83da1d4293dacf2d1d419240883b75a2
Verify the GreenLeaf Market card shows a service fee of "$3.99" and the BulkBarn Wholesale card shows a service fee of "$5.49".
## Confirm each store picks its own window ✓ passed (41.4s)
md5: f0a043d3f22d0a0d71be2c43d1b0166f
Click "Within 2 hours · 3:00pm - 5:00pm" in the GreenLeaf Market card, click "This evening · 6:00pm - 8:00pm" in the BulkBarn Wholesale card, and verify both options are selected in their own store cards.| Step | Result | Duration |
|---|---|---|
| Add an item from the first store | Passed | 32.4s |
| Add an item from a second store | Passed | 34.6s |
| Open checkout | Passed | 34.3s |
| Confirm each store has its own fees | Passed | 24.9s |
| Confirm each store picks its own window | Passed | 41.4s |
Reading the evidence
The result is a test that proves two carts stayed independent, which is the whole promise of a multi-store basket. It reads clearly enough that an operations lead can confirm the fee figures are the right ones.
The same scoping question comes up in any interface that repeats a card or a row with its own controls. How assertions resolve on the live page explains the mechanism, and the test.md format covers keeping related flows in one place.
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.
Multi-Store Cart 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




