This commit is contained in:
parent
fe489673be
commit
b49042a626
8 changed files with 143 additions and 28 deletions
12
tools/e2e.sh
12
tools/e2e.sh
|
|
@ -212,6 +212,18 @@ else
|
|||
bad "Product schema" "missing, unparseable, or wrong offer count"
|
||||
fi
|
||||
body_has /shop/fp6-pmos '"price":"563.30"' "schema price is the checkout integer"
|
||||
# Merchant-grade offer fields: what Merchant Center's website-crawl feed
|
||||
# reads. Shipping uses the static zone rates (listing may overstate, never
|
||||
# understate what checkout charges); returns mirror the terms page.
|
||||
body_has /shop/fp6-pmos 'OfferShippingDetails' "offers carry shipping details"
|
||||
body_has /shop/fp6-pmos 'MerchantReturnPolicy' "offers carry a return policy"
|
||||
body_has /shop/fp6-pmos '"sku":"fp6-pmos-green"' "offers carry per-variant skus"
|
||||
body_has /shop/fp6-pmos '"brand":{"@type":"Brand","name":"Fairphone"}' "product carries the hardware brand"
|
||||
if extract_ld /shop/fp6-pmos | jq -e '.offers[0].shippingDetails | length == 3' >/dev/null 2>&1; then
|
||||
ok "shipping details cover all three zones"
|
||||
else
|
||||
bad "shipping zones" "expected NL + EU + world tiers in the first offer"
|
||||
fi
|
||||
if [ "$SHOP_OPEN" = 1 ]; then
|
||||
body_has /shop/fp6-pmos 'schema.org/InStock' "open shop maps to InStock availability"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue