058 — should hit monthly seat limit and add more seats via Customer Portal¶
Description¶
Verifies the "out of seats" recovery flow on Monthly: when an invitation is blocked, the owner can buy an extra seat from the prompt and immediately add the new user.
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 via Hosted Checkout (1 seat). Expected: Monthly active, 1 seat at $16.00, 1 of 1 used, summary and period-end date match Stripe.
- Open the Customer Portal and increase the Monthly plan to 2 seats.
- Add 1 employee via API, then reload. Expected: Monthly subscription shows 2 seats at $32.00, 2 of 2 used, summary and period-end date match Stripe.
- From the Users page, try to invite a third user. Expected: the "not enough licences" warning appears and the user is not created (Users list still 2).
- From that warning, click "Purchase licence now" and grow the plan to 3 seats in the Customer Portal. Expected: Monthly subscription shows 3 seats at $48.00, 2 of 3 used, summary and period-end date match Stripe.
- Invite the third user again. Expected: "User created" popup; Users list shows 3 users, and Billing now shows 3 of 3 seats used at $48.00.
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 228)
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 228)