Source: https://everyrole.dev/blog/plan-limits-testing

# Usage limit testing: plan limits and paid features

Usage limit testing in three cases: one below the limit, at the limit, and past it. Then what a paid account must open and a free one must not.

Nov 22, 2026  6 min read  by the EveryRole team

Usage limit testing needs an account that is actually at its limit, and three cases. One below the limit, the app lets you add one more. At the limit, it tells you before you try. Past the limit, sent anyway, the server refuses and nothing is created.

Paid features are the same test from the other side: a paid account must get in, a free one must be refused, also when it pastes the address.

Both are easy to miss, for a practical reason. The developer’s own account is on the top plan, or on no plan at all, and it never meets a limit.

## Keep an account at its limit

The first step is boring and it is the whole trick: make a test account, fill it to its limit, and leave it there. If the free plan allows five projects, the account has five projects, and nobody tidies them up.

Then make a second account, on the paid plan, used for nothing else.

Without these two, every test starts with filling an account by hand, so you won’t do it. With them, each case below is a page load.

## Usage limit testing: the three cases

We set our practice app so that an editor’s plan allows two items, and walked up to the limit.

**One below.** With one item, the new item form had no warning, and creating the second worked. That is right. A warning one below the limit is fine too (“1 of 2 left”), but a refusal here is an off-by-one, and it is the first thing to rule out. Limits are [boundary values](https://everyrole.dev/blog/boundary-value-testing): test the last allowed one and the first refused one.

**At the limit.** With two items, the form looks like this:

![The practice app's new item form at the limit: a red message says "You reached your plan's limit of 2 items", and the Create button is disabled](https://everyrole.dev/s/blog/plan-limits-testing/at-the-limit.webp)

At the limit, before any click: the app says so, with the number, and the button is off.

The app says what happened, with the number, and the button is disabled. Good. The person learns it before typing a name and a note.

Our practice app could do better one step earlier. Its list page shows the two items and a “New item” link that looks the same as always. You find out about the limit only after following it.

**Past the limit.** A disabled button is a courtesy in the browser. It is not a rule. So we enabled the button by hand in the browser’s tools and pressed it.

![The practice app's answer to a create sent past the disabled button: a page titled "Limit reached" that says "Your plan allows no more items"](https://everyrole.dev/s/blog/plan-limits-testing/over-the-limit.webp)

Sent anyway. The server has its own check, and the list still has two items.

The server refused, and the list still had two items afterwards. That last part is the real check. A refusal message proves little if the item was saved anyway, which is how [a test passes while the app is broken](https://everyrole.dev/blog/hollow-passes).

This is the case that finds money bugs. A limit that lives only in the page is a limit for polite people. Anyone with two tabs open, a slow connection and a double click, or a script, walks past it.

## What a good answer at the limit has

When you look at your own app at its limit, check for four things:

1. It says so before the action, on the page where the action starts.
2. It gives the number (“your plan’s limit of 2 items”), so the person knows it is a plan limit and not a bug.
3. It offers the way out: upgrade, or delete something. If the way out is an upgrade, [walk it to the payment step](https://everyrole.dev/blog/test-checkout-without-paying) as that account.
4. After deleting one, the form works again without a reload trick or a wait.

The fourth is worth a minute. Some apps count usage in a separate counter that only goes up. Delete an item and the counter still says you are full.

## Feature gating testing: free and paid on the same pages

A paid feature is a page or a button that one account gets and another doesn’t. So the test is a small table: the same stops, visited as each account, with the expected answer written for both.

![Four stops with the expected answer for a free account and for a paid one: the paid feature's page from the menu, the same page by its address, the create form at the limit, and the create form sent past the button](https://everyrole.dev/s/blog/plan-limits-testing/free-and-paid.webp)

Four stops, two accounts. The second row is the one that gets forgotten.

The second row is where gating breaks. Hiding a menu item is done in the page. Refusing the page has to be done on the server, per address, and it is a separate piece of work that is easy to forget. So as the free account, paste the paid page’s address. You want a refusal in the app’s own words, with a link back.

Then check the paid account gets what it paid for. This sounds too obvious to test. It is the more expensive bug: a customer who upgraded and still sees “upgrade to use this” has paid you and got nothing, and they will tell you by asking for the money back.

Two more cases, if you can spare the time:

- **Right after upgrading.** The feature should open at once, in the same session, without logging out and in.
- **After downgrading.** The paid pages close again, and what was made while paid is either kept read-only or clearly explained. Decide which, then test that.

## What we’d skip

Testing every limit on every plan. Pick the limit people hit first (say, the count of the main thing) and the one paid feature people upgrade for.

We also wouldn’t build the “at the limit” account fresh in every test run by creating items until it refuses. It is slow, and when the limit changes from five to ten, the test breaks for the wrong reason. Keep the account full, and let the test read the number from the page.

## How EveryRole tests limits and plans

EveryRole can only test a limit the way you can: with an account that is at it. You give it a test login for an account you keep at its limit, or on a paid plan, and each becomes a kind of user of its own.

For those accounts it has three extra cases, off until you turn them on: at the limit (the stop’s page and button as that account), over the limit (the stop’s good input as that account, which must be refused, and it checks that nothing was made), and what a plan opens (the stop’s page and button as the account on that plan). After its first runs, the result of each is shown to you, and after your yes every run compares with that answer.

It types and clicks like a person, from the outside. So the server-side test above, the one past a disabled button, is still yours to do by hand.

Separately, at every stop, it checks whether the other kinds of user can open the page and get its button. With a free and a paid account among your kinds of user, that covers the “by its address” row of the table.

## Try it on your own app

EveryRole tests your app’s real user journeys for each kind of user, from the live site, and runs them after every deploy. Paste your app’s address to see what it finds.

[Start with your app](https://everyrole.dev/signup) [How it works](https://everyrole.dev/docs#start)

## Keep reading

Payments

### [How to test checkout without paying](https://everyrole.dev/blog/test-checkout-without-paying)

Test checkout without paying: walk to the payment step on the live site, check the plan and the total, never press Pay. And where test mode fits.

Nov 22, 2026  6 min read

Test cases

### [Boundary value testing, without the theory](https://everyrole.dev/blog/boundary-value-testing)

Boundary value analysis on a real form: a field of 1 to 60 characters needs four test values, all at the edges. What to type, and what we found in our own app.

Nov 22, 2026  6 min read

Roles and permissions

### [Test accounts for each role, kept safe](https://everyrole.dev/blog/test-accounts-for-each-role)

Test accounts for QA: one per kind of user, made for testing, never a real person’s, with the least rights that do the job.

Nov 22, 2026  5 min read
