ui: contrast_mode: add a test
(sadly capybara fails to execute my js, so for now only a very simple test runs)

part of [#61132882]