Given a new Canvas page "Landing" at "/landing"

Create a published, empty Canvas page at a path, or reset the page that already has that path (or title) to an empty, published state. Reusing the existing entity keeps one stable alias: a deleted page goes to the trash with its alias, so a recreate would collide with it. Needs a logged in user who may create Canvas pages.

Examples

Given a new Canvas page "Landing" at "/landing"
Given there is a new Canvas page "Team" at "/about/team"
Given I have a new Canvas page "Pricing" at "/pricing"
And we have a new Canvas page "Events" at "/events"
And there is a new Canvas page "Support" at "/support"

Pattern

Given(/^(?:there is |I have |we have )?a new Canvas page "([^"]*)" at "([^"]*)"$/, …)

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