Log the current session out via /user/logout.
As of core 10.3 a bare GET to /user/logout no longer ends the session: it renders a CSRF-protected confirmation form (#user-logout-confirm) instead. This step submits that confirmation when it appears, and falls through unchanged on older versions that log out on the GET itself.
Examples
When I log out
And we log out
When I logout
And I sign out
When we sign out
Pattern
When(/^(I |we )*(?:log ?out|sign out)$/, …)
Part of @webship-js/drupal-core-steps (github.com/webship/drupal-core-steps), a step pack for Webship-js 2.0.x.