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 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.

@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