Then the colour mode should be "dark"

Assert the colours the page shows: light or dark (<html data-theme>), whatever was chosen to get there.

Examples

Then the colour mode should be "dark"
And the colour mode should be "light"
Then color mode should be "dark"
And the color mode should be "light"
Then the colour mode should be "light"

Pattern

Then(/^(?:the )?colou?r mode should be "(light|dark)"$/, …)

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