Pinning the one link that takes money: a test for the bid-package checkout

The wall-framing bid package has one public checkout link and no test on it. A test now fails on plain http, credentials or a secret in the link.

The wall-framing takeoff sells its branded bid package through a hosted checkout (a merchant of record, so we never hold a key). The link lives in one constant, CHECKOUT_URL, which stays empty until the owner creates the product. It was the only engine module without a test.

A fuzz test would be theatre for two constants, so checkout.test.mjs pins the shape instead: empty (no Buy button) or an https: link with no username, password, stray whitespace or key=/token= query. The licence-validate URL gets the same checks. A typo or a pasted secret now fails the venture suite before it reaches the page.

Not checked: the link against a live checkout, which does not exist yet.

All writing · More in Tools and projects · More on Wall Framing Takeoff · All tools and research