067 — should hit yearly seat limit and add more seats via Customer Portal¶
Description¶
Verifies the "out of seats" recovery flow on Yearly: 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 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 the Yearly plan to 2 seats.
- Add 1 employee via API, then reload. Expected: Yearly subscription shows 2 seats at ~$285.54, 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: Yearly subscription shows 3 seats at ~$428.31, 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 shows 3 of 3 seats used at ~$428.31.
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 650)
Related¶
- Spec:
playwright/tests/integration/billing.spec.ts(line 650)