From c696fd558b46d713e420c52245deaed45114546a Mon Sep 17 00:00:00 2001 From: bhawana001 Date: Thu, 10 Sep 2026 08:03:22 +0000 Subject: [PATCH] test: add Kane CLI natural-language E2E test --- tests/kane-cli/add-to-cart_test.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/kane-cli/add-to-cart_test.md diff --git a/tests/kane-cli/add-to-cart_test.md b/tests/kane-cli/add-to-cart_test.md new file mode 100644 index 0000000000..6c257230d7 --- /dev/null +++ b/tests/kane-cli/add-to-cart_test.md @@ -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).