When the security token of the form expires

Make the security token of the forms on the page out of date, as a form left open in a tab while the session behind it was renewed: the hidden field that carries the token (named like "csrf" or "token") gets a value the app never issued. Send the form next, and assert the refusal.

Examples

When the security token of the form expires
And the security token of the form expires
Given the security token of the form expires
When the security tokens of the forms expire
And the security tokens of the forms expire

Pattern

When(/^the security tokens? of the forms? (?:expires|expire)$/, …)

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