fp6+
All checks were successful
Deploy / build-deploy (push) Successful in 3m6s

This commit is contained in:
Jorijn van der Graaf 2026-08-19 17:19:51 +02:00
commit ed61fb5ca5
12 changed files with 254 additions and 38 deletions

View file

@ -38,7 +38,26 @@ int main(int argc, char** argv) {
srv.BodyHas("/shop", "coming soon", "shop card carries the coming-soon badge");
srv.BodyLacks("/shop/fp6-pmos", "<form", "no order form while coming soon");
}
// The donation item: open while the phone above may not be — the shop's
// The Gen. 6+ beside it: one launch price in all three colours, so the
// "from" price and every selector row are the same number — and the
// ex-VAT twin is still derived from it rather than typed in.
srv.BodyHas("/shop/fp6plus-pmos", "€709.50",
"refresh page shows the from-price (€649.00 supplier + €60.50 gross markup)");
srv.BodyHas("/shop/fp6plus-pmos", "€586.36", "refresh page shows the derived ex-VAT price");
srv.BodyHas("/shop", "€709.50", "shop card shows the refresh from-price");
srv.BodyHas("/shop/fp6plus-pmos", "Cobalt Blue €709.50",
"colour selector prices the colour only this model ships in");
srv.BodyHas("/shop/fp6plus-pmos", "12 GB RAM",
"refresh page states the spec that makes it a different phone");
srv.BodyHas("/shop/fp6plus-pmos", "src=\"/fp6plus-pmos.jpg\"",
"refresh page embeds its own photo");
srv.BodyHas("/shop", "src=\"/fp6plus-pmos.jpg\"", "shop card embeds the refresh thumbnail");
Check(std::filesystem::exists("images/fp6plus-pmos.jpg"),
"refresh photo exists in the repo");
srv.BodyLacks("/shop/fp6plus-pmos", "stock Fairphone (Gen. 6),",
"refresh page does not caption its specs as the Gen. 6's");
// The donation item: open while the phones above may not be — the shop's
// soft opening. Its card quotes no price (there is none), its page is a
// form asking an amount and, optionally, an email — never an address.
srv.BodyHas("/shop", "/shop/donation", "shop grid lists the donation item");