Then I should be able to edit the content at "/sample-article"

Assert the current session may, or may not, edit or delete the content item at a path: the item's own edit or delete form (/node/<nid>/edit, /node/<nid>/delete) answers 200 for the session, or refuses it.

Examples

Then I should be able to edit the content at "/sample-article"
And I should be able to delete the content at "/sample-article"
Then we should not be able to edit the content at "/sample-article"
And I should not be able to delete the content at "/node/1"
Then I should be able to edit the content at "/node/1"

Pattern

Then(/^(I |we )*should( not)* be able to (edit|delete) the content at "([^"]*)"$/, …)

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