068 — should auto-renew yearly subscription after 366 days¶
Description¶
Verifies that a Yearly subscription auto-renews after one billing cycle: simulating 366 days passing keeps the plan active, seats unchanged, and produces a new invoice in Stripe.
Preconditions¶
- Freshly registered tenant signed in as the owner on the dev environment.
- Tenant is on the 14-day free trial.
- Stripe sandbox customer + test clock exist for the tenant.
Steps¶
- Open the Billing page. Expected: 14-day trial summary visible.
- Buy the Yearly plan via Hosted Checkout (1 seat). Expected: Yearly active, 1 seat at ~$142.77, 1 of 1 used, summary and next-payment date match Stripe.
- Open the Customer Portal and grow Yearly to 2 seats. Add 1 employee via API and reload Billing. Expected: Yearly subscription shows 2 seats at ~$285.54, 2 of 2 used, summary and next-payment date match Stripe; Stripe shows 2 invoices for this customer.
- Advance the Stripe test clock by 366 days and reload Billing. Expected: the subscription has auto-renewed — Yearly subscription still shows 2 seats at ~$285.54, 2 of 2 used, but the summary sentence and next-payment date now reflect the new period end one year later (matches Stripe), and Stripe shows 3 invoices for this customer.
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 713)
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 713)