Then the site health test "Scheduled events are running" should pass

Assert a Site Health test has a result, by the title the screen gives it: passed, recommended (should be improved) or critical. Site Health runs its tests in the page, so the step waits for them. The Site Health screen must be open. Tests that matter for operation include "Scheduled events are running" (cron), "The REST API is available", "Your site can perform loopback requests" and "Your website is using an active HTTPS connection".

Examples

Then the site health test "Scheduled events are running" should pass
And the site health test "The REST API is available" should pass
Then the site health test "You should remove inactive plugins" should be recommended
And the site health test "Your site is set to display errors to site visitors" should be critical
Then the site health test "Search engine indexing is enabled." should pass

Pattern

Then(/^the site health test "([^"]*)" should (pass|be recommended|be critical)$/, …)

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