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 CLIMerchant Admin

Test admin draft order creation and mark as paid

Build a draft order for a customer in the merchant admin, save it, mark it paid, and confirm it lands in the orders list.

Published on:

Merchant admin gets the least test coverage and the most daily use. Support staff create manual orders every day, and a broken draft order builder blocks revenue just as effectively as a broken storefront, with nobody outside the company to report it.

This use case drives the Shoplify admin through the full manual order path, from an orders list of two to an order list containing a new paid order. Five steps, 282 seconds, all passed.

The flow under test

Admin flows are stateful in a way storefront flows are not. The test has to establish what was there before, change it, and then prove the change landed in the right place with the right attribution.

  • Establish the baseline - Orders (2), listing #1001 and #1002, so the new order is demonstrably new.
  • Build with real inputs - a named customer, an email, a selected product and a quantity of 2 producing a $52.00 draft total.
  • Check the intermediate state - draft D1 exists for Marco Oduya with status open before anything is charged.
  • Check the attribution - order #1003 shows channel "Draft order" and status paid, not just that an order exists.

The channel assertion is the detail that makes this test worth running. An order that appears but is attributed to the wrong channel corrupts every downstream sales report, and it looks completely fine on screen.

Note

Note: Kane CLI works on internal tools and admin panels behind a login, using saved browser profiles so the test does not re-authenticate on every run. TestMu AI runs it free to start. Try free!

The test file

Step three does the real work: five separate interactions, including a dropdown selection, in one instruction. Writing it as one step keeps the file readable and lets Kane CLI plan the form in a single pass.

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

# Shoplify 2.4: Admin order creation

Catalog objective: create a draft order for a customer in admin and mark it paid.
Key assertion: the order appears in the orders list as paid.

## Confirm the starting orders list
Verify the Orders tab shows "Orders (2)" listing order "#1001" and order "#1002".

## Open the draft order builder
Click "Draft orders" and verify a "Create draft order" card is shown with a "Customer name" field.

## Build the draft
Type "Marco Oduya" into "Customer name", "marco@example.com" into "Customer email", select "Canvas Market Tote" as the Product, type "2" into Quantity, click "Add line item", and verify a draft total of "$52.00" is shown.

## Save the draft
Click "Save draft order" and verify the draft orders list shows draft "D1" for "Marco Oduya" with status "open".

## Mark the draft paid
Click "Mark as paid" on draft "D1" and verify the Orders tab shows order "#1003" for "Marco Oduya" with channel "Draft order" and status "paid".

Run it with:

kane-cli testmd run tests/shopify/admin-order-creation_test.md

The run

All five passed. The build step took 141.8 seconds, half the total run, which is the cost of a multi-control form with a product dropdown and a line item that has to be added before the total appears.

---
test: ../admin-order-creation_test.md
status: passed
started: 2026-09-15T09:29:05.519Z
duration_s: 282
session_id: 2ea1605c-0d43-4eaf-a765-3d6254358e74
---

# Shoplify 2.4: Admin order creation - Result

## Confirm the starting orders list ✓ passed (24.7s)
md5: c43aacb9be59680c1d7b598d24292982
Verify the Orders tab shows "Orders (2)" listing order "#1001" and order "#1002".

## Open the draft order builder ✓ passed (26.4s)
md5: 2fc6d4ae7955cadd253a4a39ca631837
Click "Draft orders" and verify a "Create draft order" card is shown with a "Customer name" field.

## Build the draft ✓ passed (141.8s)
md5: 6e3842256d1b0f35a29c38af78d3d325
Type "Marco Oduya" into "Customer name", "marco@example.com" into "Customer email", select "Canvas Market Tote" as the Product, type "2" into Quantity, click "Add line item", and verify a draft total of "$52.00" is shown.

## Save the draft ✓ passed (35.3s)
md5: a1324382351d7fa70e8395eafae9f81c
Click "Save draft order" and verify the draft orders list shows draft "D1" for "Marco Oduya" with status "open".

## Mark the draft paid ✓ passed (51.5s)
md5: 3cf14160157131cede3968d7bb7782b2
Click "Mark as paid" on draft "D1" and verify the Orders tab shows order "#1003" for "Marco Oduya" with channel "Draft order" and status "paid".
StepResultDuration
Confirm the starting orders listPassed24.7s
Open the draft order builderPassed26.4s
Build the draftPassed141.8s
Save the draftPassed35.3s
Mark the draft paidPassed51.5s

A step that takes half the run is a signal, not a problem. If that number climbed on a later run, the form is where to look, and the per step timings make that visible without any extra instrumentation.

Next-generation test execution with TestMu AI

Reading the evidence

The outcome is coverage on the tooling your own staff depend on, written in language the support team can verify. Admin regressions stop being something a merchant discovers on a Monday morning.

Internal tools are also where AI coding agents do the most unattended work, which makes an automated browser check the natural pairing. Verifying agent-written code with Claude Code covers that loop, and the three Kane CLI modes explains when to use the interactive session instead of a one-shot run.

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

Admin Order 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