When a page of another site sends a form to "/en/login"

Send a form to an address of the app from a page of another site, as a forged form on somebody else's page does: the browser posts it with a token the app never gave, and says it comes from another site. The app must refuse it: the login form answers "Invalid CSRF token.", a form of the app prints that its token is invalid. Assert that with the next step.

Examples

When a page of another site sends a form to "/en/login"
When a page of another site sends a form to "/en/profile/edit"
And a page of another site sends a form to "/en/admin/post/new"
When a page of another site sends a form to "/logout"
When a page of another site sends a form to "/en/profile/change-password"

Pattern

When(/^a page of another site sends a form to "([^"]*)"$/, …)

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