Then the list should have 10 rows

Assert the number of rows the list shows on the page on screen.

Examples

Then the list should have 10 rows
Then the list should have 3 rows
And the list should have 25 rows
Then the "Addresses" list should have 1 row
Then the list should have 1 row

Pattern

Then(/^the (?:"([^"]*)" )?list should have (\d+) rows?$/, …)

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