This commit is contained in:
parent
4666c1995f
commit
593bdb17d4
6 changed files with 28 additions and 16 deletions
|
|
@ -66,7 +66,11 @@ int main(int argc, char** argv) {
|
|||
// The image file itself is Caddy's to serve (static asset), so its
|
||||
// presence is asserted against the repo, not this server.
|
||||
Check(std::filesystem::exists("images/fp6-pmos.jpg"), "product photo exists in the repo");
|
||||
srv.BodyHas("/shop/fp6-pmos", "not yet verified", "emergency-calling caveat is on the page");
|
||||
// 112 was verified against a live network on 2026-08-18, so the caveat
|
||||
// that used to sit above the spec sheet is gone from the served page and
|
||||
// must not creep back in.
|
||||
srv.BodyLacks("/shop/fp6-pmos", "not yet verified",
|
||||
"no unverified-emergency-calling caveat on the page");
|
||||
srv.BodyLacks("/shop", "reservation", "no reservation copy survives on /shop");
|
||||
srv.BodyLacks("/shop/fp6-pmos", "Reserve one", "no reservation form survives");
|
||||
|
||||
|
|
|
|||
|
|
@ -89,9 +89,13 @@ void CatalogueContract() {
|
|||
Check(MaxUnitsFor(ladder, pr.shipWeightGrams) == 14,
|
||||
"content: and caps one parcel at fourteen units");
|
||||
}
|
||||
Check(pr.safetyNote.find("112") != std::string::npos
|
||||
&& pr.safetyNote.find("not yet verified") != std::string::npos,
|
||||
"content: emergency-calling safety warning present and honest");
|
||||
// This used to assert the emergency-calling caveat was present. It
|
||||
// came off on 2026-08-18, when imsd called 112 over a live network in
|
||||
// an approved test session, so the assertion inverts: the page must
|
||||
// not go back to telling buyers that path is unverified. A future
|
||||
// safety claim may fill this field again — it just cannot be that one.
|
||||
Check(pr.safetyNote.find("not yet verified") == std::string::npos,
|
||||
"content: no stale unverified-emergency-calling caveat");
|
||||
Check(pr.warranty.find("TODO") == std::string::npos && pr.warranty.size() > 100,
|
||||
"content: warranty is written, not a placeholder");
|
||||
// The product page's schema.org record must parse with our own
|
||||
|
|
|
|||
Loading…
Reference in a new issue