Skip to content

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

  1. Open the Billing page. Expected: 14-day trial summary visible.
  2. 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.
  3. Open the Customer Portal and cancel the Monthly subscription, then return to the app. Expected: Monthly card shows "subscription ends ..." with date from Stripe.
  4. Advance the Stripe test clock by 32 days and reload.
  5. 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.
  6. Click "Renew Monthly subscription" and complete Stripe Hosted Checkout with the test card.
  7. 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.
  • Spec: playwright/tests/integration/billing.spec.ts (line 856)
  • Spec: playwright/tests/integration/billing.spec.ts (line 856)