refactor(pricing): refonte v7.0 — 3 Cloud (Basic 189$/Essentiel 349$/Pro 549$) + DictIA Local (5998$ An1) + Pro+ soumission
Remplace l'ancien pricing (DictIA 8 / 16 / Cloud) par la nouvelle structure canonique v7.0 : 4 forfaits + 1 sentinel quote-only. Changements clés : - pricing_card.html : signature étendue (badge, recommended, capacity_audio, capacity_storage, gpu, yearly_renewal, cta_label) + format prix server-side avec NBSP OQLF (5998 -> 5 998 $) - _pricing_tiers.html : 4 cards (Cloud Basic 189$, Cloud Essentiel 349$, Cloud Pro 549$+485$ RECOMMANDÉ, DictIA Local 5998$ An1) + chip Pro+ soumission -> /contact?pro-plus=1 - plans.py : refonte complète avec yearly_renewal_env (DictIA Local An 2+ = 500$/an) + is_quote_only sentinel (Pro+ -> redirect /contact, jamais Stripe) - routes.py : Pro+ intercepté avant le flow Stripe Checkout - env.stripe.example : nouveau naming STRIPE_CLOUD_BASIC|ESSENTIEL|PRO_* + STRIPE_DICTIA_LOCAL_SETUP/RENEWAL_YEARLY - tarifs.html : header "Quatre forfaits", matrice comparative 4 colonnes, FAQ enrichie (7 questions incluant DictIA Local + onboarding Pro + Pro+) - fonctionnalites.html : section Architecture refondue (4 cards v7.0) - landing.html : ROI footnote + cycle "189$" + wave "189$/mois" actualisés - roi_calculator.js : recalibrage sur Cloud ESSENTIEL 349$ × 12 = 4188$/an - routes.py marketing : FAQ "DictIA 8 et 16" -> "DictIA LOCAL" - contact.html : "déploiements DictIA 16" -> "Cloud PRO" + "DictIA LOCAL" Tests : - test_marketing_landing_template.py : assertions prix v7.0 (189/349/549/5998), 4 slugs (cloud-basic, cloud-essentiel, cloud-pro, dictia-local), Pro+ chip, capacity chips, RECOMMANDÉ sur Cloud PRO - test_marketing_secondary_pages.py : 4 cards + Pro+ chip + matrice 4 col + FAQ 7 questions - test_stripe_checkout.py : env vars v7.0, slugs cloud-basic/cloud-pro/ dictia-local + nouveau test pro-plus -> /contact + tests setup pour Cloud PRO et DictIA Local - test_stripe_webhook.py : plan_slug metadata cloud-basic Status : 28/28 Stripe checkout + 17/17 webhook + 93/98 marketing pass (les 5 marketing failures sont pré-existantes, non liées au pricing : test_landing_has_main_nav et test_footer_links_complete = /blog manquant ; test_trust_bar_has_eyebrow_factual_phrasing + 2 tests conformite = casing eyebrow + entité é — vérifié par git stash baseline). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,41 +33,51 @@ def test_tarifs_has_h1_with_anchor():
|
||||
assert '<h1' in body and 'choisissez votre infrastructure' in body
|
||||
|
||||
|
||||
def test_tarifs_renders_3_pricing_cards():
|
||||
def test_tarifs_renders_4_pricing_cards_v7():
|
||||
"""Tarifs page renders the v7.0 4 forfaits + Pro+ chip."""
|
||||
client = app.test_client()
|
||||
body = client.get('/tarifs').data.decode('utf-8')
|
||||
for tier in ['DictIA 8', 'DictIA 16', 'DictIA Cloud']:
|
||||
for tier in ['Cloud BASIC', 'Cloud ESSENTIEL', 'Cloud PRO', 'DictIA LOCAL']:
|
||||
assert tier in body
|
||||
# Canonical NBSP prices
|
||||
assert '3 450 $' in body
|
||||
assert '5 750 $' in body
|
||||
assert '369 $' in body
|
||||
assert 'href="/checkout/dictia-8"' in body
|
||||
assert 'href="/checkout/dictia-16"' in body
|
||||
assert 'href="/checkout/dictia-cloud"' in body
|
||||
# Canonical NBSP prices (v7.0)
|
||||
assert '189 $' in body
|
||||
assert '349 $' in body
|
||||
assert '549 $' in body
|
||||
assert '485 $' in body # Cloud Pro onboarding
|
||||
assert '5 998 $' in body # DictIA Local An 1
|
||||
# Checkout slugs
|
||||
assert 'href="/checkout/cloud-basic"' in body
|
||||
assert 'href="/checkout/cloud-essentiel"' in body
|
||||
assert 'href="/checkout/cloud-pro"' in body
|
||||
assert 'href="/checkout/dictia-local"' in body
|
||||
# Pro+ chip with /contact link
|
||||
assert 'Pro+' in body
|
||||
assert '/contact?pro-plus=1' in body
|
||||
|
||||
|
||||
def test_tarifs_comparison_matrix_8_rows():
|
||||
def test_tarifs_comparison_matrix_v7():
|
||||
"""v7.0 comparison matrix has 4 columns + 10 rows."""
|
||||
client = app.test_client()
|
||||
body = client.get('/tarifs').data.decode('utf-8')
|
||||
assert 'matrix-title' in body
|
||||
assert '<caption class="sr-only">' in body
|
||||
assert 'scope="col"' in body
|
||||
assert 'scope="row"' in body
|
||||
# 8 row keywords
|
||||
for kw in ['Hébergement', 'GPU', 'Volume audio', 'Utilisateurs',
|
||||
'Diarisation', 'Mistral 7B local', 'Q&R', 'Délai']:
|
||||
# v7.0 row keywords (matches the rows in tarifs.html)
|
||||
for kw in ['Hébergement', 'GPU', 'Capacité audio', 'Stockage', 'Utilisateurs',
|
||||
'Diarisation pyannote', 'Loi 25', 'SLA', 'Délai']:
|
||||
assert kw in body, f"Missing matrix row keyword: {kw}"
|
||||
|
||||
|
||||
def test_tarifs_pricing_faq_5_questions():
|
||||
def test_tarifs_pricing_faq_v7():
|
||||
"""v7.0 tarifs FAQ has 7 questions (added DictIA Local + Cloud Pro onboarding + Pro+ explanations)."""
|
||||
client = app.test_client()
|
||||
body = client.get('/tarifs').data.decode('utf-8')
|
||||
assert 'tarifs-faq-title' in body
|
||||
for i in range(1, 6):
|
||||
for i in range(1, 8):
|
||||
assert f'tarifs-faq-panel-{i}' in body, f"Missing tarifs FAQ panel {i}"
|
||||
# Alpine accordion bindings
|
||||
assert body.count('x-data="{ open: false }"') >= 5
|
||||
assert body.count('x-data="{ open: false }"') >= 7
|
||||
# Each accordion button has focus-visible (WCAG 2.4.7/2.4.11)
|
||||
assert 'focus-visible:outline-2' in body
|
||||
|
||||
@@ -150,8 +160,6 @@ def test_fonctionnalites_uses_oqlf_typography():
|
||||
body = client.get('/fonctionnalites').data.decode('utf-8')
|
||||
# NBSP entities
|
||||
assert '95 %+' in body, "WhisperX precision NBSP entity"
|
||||
assert 'GPU 8 Go RTX' not in body # Bento card calls don't use 8 Go RTX (that's pricing)
|
||||
assert 'Q&R' in body, "French Q&R (not Q&A)"
|
||||
# No double-escape
|
||||
assert '&nbsp;' not in body
|
||||
|
||||
|
||||
Reference in New Issue
Block a user