When I rebuild the invalid indexes

Rebuild the invalid indexes. The admin panel can only read the state of the indexes and change their mode: it has no "reindex" button, and deleting or moving a category leaves "Category Products" and "Catalog Search" on "REINDEX REQUIRED" even with the indexers on "Update on Save". A suite deals with it through the command line: the step runs reindexCommand of cucumber.js (worldParameters) in siteDir and then expects every index to be ready on Index Management.

Examples

When I rebuild the invalid indexes
And I rebuild the invalid indexes
When we rebuild the invalid indexes
Given I rebuild the invalid indexes
And we rebuild the invalid indexes

Pattern

When(/^(I |we )*rebuild the invalid indexes$/, …)

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