Assert that the form of a button (found by its words) carries its anti-forgery token.
Examples
Then the form of the "Log in" button should carry an anti-forgery token
Then the form of the "Save" button should carry a CSRF token
And the form of the "Logout" button should carry an anti-forgery token
Then the form of the "Register" button should carry an anti-forgery token
And the form of the "Change email" button should carry a CSRF token
Pattern
Then(/^the form of the "([^"]*)" button should carry (?:an anti-forgery|a CSRF) token$/, …)
Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.