071 — should renew monthly subscription after cancellation and period end¶
Description¶
Verifies that after a Monthly subscription is cancelled and its period has ended, the tenant can renew it through the same buy-plan flow and immediately get an active subscription again.
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 Monthly plan (1 seat) via Hosted Checkout. Expected: Monthly active, 1 seat at $16.00, 1 of 1 used, summary and next-payment date match Stripe.
- Open the Customer Portal and cancel the Monthly subscription, then return to the app. Expected: Monthly card shows "subscription ends ..." with date from Stripe.
- Advance the Stripe test clock by 32 days and reload.
- Expected: the convert-to-paid prompt and banner appear at the top of the Billing page, and the Monthly card shows a "Renew Monthly subscription" action.
- Click "Renew Monthly subscription" and complete Stripe Hosted Checkout with the test card.
- Expected: Monthly subscription is active again — 1 seat at $16.00, 1 of 1 used, summary sentence shows "next payment due ..." with a date from Stripe.
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 856)
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 856)