This commit is contained in:
parent
4666c1995f
commit
593bdb17d4
6 changed files with 28 additions and 16 deletions
|
|
@ -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