Restore an item from the trash, or purge it (delete it for good, which also frees its URL alias): the step opens the listing, follows the "Restore" or "Purge" operation of the item's row, confirms, and waits for the site's status message. When several deleted items share the title, "purge" removes every one of them and "restore" brings back the most recently deleted.
Examples
When I purge "Old page" from the content trash
And I purge "Landing" from the Canvas pages trash
When I restore "Old page" from the content trash
And we restore "Landing" from the Canvas pages trash
When we purge "Pricing" from the Canvas page trash
Pattern
When(/^(I |we )*(restore|purge) "([^"]*)" from the (content|Canvas pages?) trash$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.