Then the "Page Content" placeholder should have 1 plugin

Assert how many plugins a placeholder holds, nested plugins included.

Examples

Then the "Page Content" placeholder should have 1 plugin
Then the "Page Content" placeholder should have 2 plugins
And the "Page Content" placeholder should have 0 plugins
Then the "Sidebar" placeholder should contain 3 plugins
And the "Footer" placeholder should contain 1 plugin

Pattern

Then(/^the "([^"]*)" placeholder should (?:have|contain) (\d+) plugins?$/, …)

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