Then the layout should have 1 section

Assert how many sections the layout on screen has, in the builder.

Examples

Then the layout should have 1 section
And the layout should have 2 sections
Then the layout should have 3 sections
And the layout should not have 0 sections
Then the layout should have 4 sections

Pattern

Then(/^the layout should( not)* have (\d+) sections?$/, …)

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