Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/kane-cli/add-to-cart_test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Next.js Commerce — add a product to the cart

A Kane CLI natural-language end-to-end test that opens the Commerce demo
storefront, opens a product, adds it to the cart, and verifies the cart updates.
Runs in a real browser (Kane CLI also automates mobile apps on the iOS Simulator
and Android Emulator).

## Add a product to the cart
Go to https://demo.vercel.store.
Wait for the storefront to load.
Click on the first product.
If size or color options are shown, select the first available option for each.
Click the "Add To Cart" button.
Assert that the cart updates to show 1 item (a cart quantity badge or a cart drawer listing the item).