Assert that the form of a button carries, or does not carry, a CSRF token (a hidden _csrf field with a value). A form that sends with GET never carries one.
Examples
Then the form of the "Update Owner" button should carry a CSRF token
And the form of the "Log out" button should carry a CSRF token
Then the form of the "Find Owner" button should not carry a CSRF token
Then the form of the "Add Visit" button should carry a CSRF token
And the form of the "Sign in" button should carry a CSRF token
Pattern
Then(/^the form of the "([^"]*)" button should( not)* carry a CSRF token$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.