Assert which heading the table of contents marks as the one being read (table-of-contents__link--active); it follows the scroll of the page.
Examples
Then the table of contents should highlight "Links"
And the table of contents should highlight "Notes and warnings"
Then table of contents should highlight "Tables"
And the table of contents should highlight "Long pages"
Then the table of contents should highlight "Headings"
Pattern
Then(/^(?:the )?table of contents should highlight "([^"]*)?"$/, …)
Part of @webship-js/docusaurus-steps (github.com/webship/docusaurus-steps), a step pack for Webship-js 2.0.x.