Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIE-commerce

Test storefront guest checkout with a test card

Five steps from an empty cart to a thank-you page, including the contact form and a 4242 test card.

Published on:

Guest checkout carries more revenue than account checkout on most storefronts and gets a fraction of the test coverage, because exercising it properly means filling a form and putting a card through every single time.

This use case runs the whole path on the Shoplify storefront, an open source Shopify style clone. Five steps, a real Chrome browser, a 4242 test card, and a thank-you page assertion that checks the order number and the amount paid. It took 257 seconds and passed.

The flow under test

The value of testing checkout end to end is that the total has to survive four separate recalculations before anyone sees it, and each one is a place where tax, shipping or a currency rounding rule can move the number.

  • Subtotal on the cart page - $32.00 for the Heavyweight Cotton Tee, before anything else is applied.
  • Total in the order summary - $41.06 once shipping and tax are added on the checkout page.
  • Total paid on the confirmation - $41.06 again, matching the summary, with order number #1003.

Asserting all three, rather than only the last, is what turns a green run into useful information. A mismatch between the summary and the amount charged is a support ticket and a chargeback, and it only shows up if the test looks at both.

Note

Note: Kane CLI runs this flow against a local build, a preview deploy or production, with the card details passed as variables rather than written into the test. TestMu AI gives you free runs to start. Start for free

The test file

Each step is one sentence describing an action and the thing that has to be true afterwards. The fourth step fills five fields in a single instruction, which Kane CLI plans in one pass rather than one field at a time.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/shopify-clone-app?reset=true
max_steps: 45
tags: [shopify, e-commerce, checkout]
---

# Shoplify 2.1: Storefront guest checkout

Catalog objective: add a product to cart and complete checkout as a guest with a test card.
Key assertion: thank-you page shows order number and correct total.

## Add a product to the cart
Click "Add to cart" on "Heavyweight Cotton Tee" and verify the page shows a confirmation reading "Added Heavyweight Cotton Tee to cart".

## Open the cart
Click "View cart" and verify the cart lists "Heavyweight Cotton Tee" with a subtotal of "$32.00".

## Go to checkout
Click "Checkout" and verify the checkout page shows "Guest checkout - no account required" and a "Contact" section.

## Fill in contact and shipping
Type "guest@example.com" into Email, "Dana Reyes" into "Full name", "9 Pine Lane" into Address, "Austin" into City, and "78701" into ZIP, then verify the order summary shows a Total of "$41.06".

## Pay with the test card
Type "4242 4242 4242 4242" into "Card number", "12 / 34" into Expiration, "123" into CVC, click the Pay button, and verify the page shows "Thank you for your order!" with order number "#1003" and a total paid of "$41.06".

The card number is written into the file here because it is a public test card on a demo storefront. For a real checkout, pass it as a secret variable so the value never reaches version control. Run the test with:

kane-cli testmd run tests/shopify/guest-checkout_test.md

The run

All five passed. The payment step is the slowest at 86 seconds, which is expected: it fills three card fields, submits, and then waits for a confirmation page to render.

---
test: ../guest-checkout_test.md
status: passed
started: 2026-09-15T09:17:15.944Z
duration_s: 257
session_id: d98a48c0-d1d8-4ce3-9b71-30c9ae64d795
---

# Shoplify 2.1: Storefront guest checkout - Result

## Add a product to the cart ✓ passed (32.7s)
md5: 58762b11031975bad7857c925fc411f7
Click "Add to cart" on "Heavyweight Cotton Tee" and verify the page shows a confirmation reading "Added Heavyweight Cotton Tee to cart".

## Open the cart ✓ passed (40.7s)
md5: 6d0e845154fea05ae67bb8f0ee5ee806
Click "View cart" and verify the cart lists "Heavyweight Cotton Tee" with a subtotal of "$32.00".

## Go to checkout ✓ passed (47.5s)
md5: a756eb905a441072a940cb6004284df9
Click "Checkout" and verify the checkout page shows "Guest checkout - no account required" and a "Contact" section.

## Fill in contact and shipping ✓ passed (46.2s)
md5: d51fceaad20e7483e0dfc311f5dc7453
Type "guest@example.com" into Email, "Dana Reyes" into "Full name", "9 Pine Lane" into Address, "Austin" into City, and "78701" into ZIP, then verify the order summary shows a Total of "$41.06".

## Pay with the test card ✓ passed (86s)
md5: 1bd389db0092097ede958d01ecd83b19
Type "4242 4242 4242 4242" into "Card number", "12 / 34" into Expiration, "123" into CVC, click the Pay button, and verify the page shows "Thank you for your order!" with order number "#1003" and a total paid of "$41.06".
StepResultDuration
Add a product to the cartPassed32.7s
Open the cartPassed40.7s
Go to checkoutPassed47.5s
Fill in contact and shippingPassed46.2s
Pay with the test cardPassed86s

Four minutes of wall clock for a full guest purchase, unattended, with a result file at the end. The same journey done by hand costs a tester roughly the same time and produces nothing anyone can attach to a ticket.

Next-generation test execution with TestMu AI

Reading the evidence

You get a checkout regression test that anyone on the team can read and amend, with no page objects and no selector file to keep in sync with the theme.

The obvious follow-up is to run it on every deploy rather than on request. Kane CLI in CI covers the headless and agent flags plus the exit codes a pipeline reads, and the test.md format explains the front matter options used above.

Author

...

Bhawana

Blogs: 77

  • Twitter
  • Linkedin

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.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Guest Checkout Testing 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