Skip to content

HomeDocsContract

Contract

The How-to-test contract.

The tagged block in the README is what Kane must prove. The committed test uses the same five required steps.

<!-- kane:how-to-test -->
1. /pricing shows Pro at $19
2. Choose Pro, open /checkout
3. Checkout shows $19
4. LAUNCH10 totals $17.10
5. Phone layout (390px), then Pay

Kane 0.10 treats a file with no H2 steps as a pass, which Receipt classifies as setup, not green. The test file uses ## headings.

  1. Open the preview (or live) site’s /pricing page and confirm the Pro plan is $19.
  2. Choose Pro and continue to checkout (/checkout).
  3. Checkout must show $19 for Pro, not any other amount.
  4. Enter coupon code LAUNCH10 and apply it. The Pro total must become $17.10 (10% off $19).
  5. Click Phone layout (390px), then click Pay. A confirmation such as “Payment accepted” must appear.

/pricing and /checkout stay as aliases of the demo shop routes so this contract does not depend on a rename.

Open the demo plans page · Limitations