Then the keyboard focus should be at the start of the page

Assert where the keyboard focus is after a page change in the same document: the site moves it back to the start of the page (the region of the "Skip to main content" link), so a screen reader starts reading the new page from its top. On a page loaded from the server the focus is on the page itself.

Examples

Then the keyboard focus should be at the start of the page
And the keyboard focus should be at the start of the page
But the keyboard focus should not be at the start of the page
Then keyboard focus should be at the start of the page
And keyboard focus should not be at the start of the page

Pattern

Then(/^(?:the )?keyboard focus should( not)* be at the start of the page$/, …)

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