When I flush all caches

Clear every cache from the Performance page (/admin/config/development/performance), the way an administrator does after changing configuration, so a following request renders fresh. Needs a session that may administer site configuration.

Examples

When I flush all caches
And I clear all caches
When we flush all caches
Given I flush all caches
And we clear all caches

Pattern

When(/^(I |we )*(?:flush|clear) all caches$/, …)

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