Then the heading "Headings" should be in view

Assert a heading of the page is in the window, not hidden under the navbar that stays at the top.

Examples

Then the heading "Headings" should be in view
And the heading "Behind a firewall" should be in view
Then heading "Getting help" should be in view
But the heading "Links" should not be in view
And the heading "Tables" should be in view

Pattern

Then(/^(?:the )?heading "([^"]*)?" should( not)* be in view$/, …)

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