When I go to the next page of the grid

Go to a page of the grid: the next one, the previous one or a page by its number.

Examples

When I go to the next page of the grid
When I go to the previous page of the grid
When I go to page 5 of the grid
And we go to page 2 of the grid
When we go to the next page of the grid

Pattern

When(/^(I |we )*go to (?:the (next|previous) page|page (\d+)) of the grid$/, …)

Part of @webship-js/magento-steps (github.com/webship/magento-steps), a step pack for Webship-js 2.0.x.