Then the grid should have 20 rows

Assert how many rows the grid shows on the current page.

Examples

Then the grid should have 20 rows
Then the grid should have 1 row
And the grid should have 50 rows
Then the grid should have 0 rows
Then the grid should have 19 rows

Pattern

Then(/^the grid should have (\d+) rows?$/, …)

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