How do you prefer to test pagination in automated tests? Creating enough records can be slow. Is it a good practice to reduce the number of items per page in test environment?
@rbates I use a `per-page` param that's set in tests for this, even though it never gets set via the UI (there's no control for it, but it works if you add it to the URL manually).
@rbates Dunno if it's "good" but I've yet to be burned by it.
@rbates I set the default page size in the test environment to 1. Then I only need to create two records. I can’t think of why this would be a problem.
@derekprior @rbates same. Been rolling that way for years. So far… fine. 🤷

@rbates I forgot that I wrote a bit about this TEN YEARS AGO 😱 https://thoughtbot.com/blog/taming-factory-bot-list-creation

FactoryBot now has `create_pair` so I consider the `*_list` variants a smell.

Taming Factory Bot List Creation

There are times in your tests when you need to create multiple instances of...

thoughtbot
@rbates have a constant in my app and stub it in the specs
@rbates is it hand made pagination or a gem?