What do you guys do in your system spec when you have pagination? Example is
click_on "Creat" visit "/records" # this is an index of all records but only the first 10 are shown and your record is kt there because there is pagination expect(page).to have_text record.name # the record is created but it is not on this page. There is pagination and you should move to the next page
How do you approach this? Do you
- Delete all records before the spec and know the record is always on the first page
- Click on “next page” until you find your records.
- Something else.