Then the admin theme should be "dark"

Assert the theme chosen in the user menu (light, dark, system), and for light and dark that the page is drawn in it.

Examples

Then the admin theme should be "dark"
Then the admin theme should be "light"
And the admin theme should be "system"
Then the admin theme should be "dark"
And the admin theme should be "light"

Pattern

Then(/^the admin theme should be "(light|dark|system)"$/, …)

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