I'm working to write a specification with gherkin (for the first time) for a REST API which will return a long list of paged items (1000 items per page). I'm curious if there's a good way in gherkin to write a specification such as this?
Well, I belive such the verification will contradict the goal of Gherkin to improve readability of your scenarios. However if I would approach such the task, I would keep the item list in a separate source (say, a file). And then the construction like:
Given I am at the page with a long list When Check all the items on a page Then List items correspond to file "C:/MyPath/goldensource.txt"
Then you develop your step definition code to read from specified file and compare the result.