FEATURE: Allow users to opt out of automatic dark mode (#10377)

This commit is contained in:
Penar Musaraj
2020-08-06 09:45:37 -04:00
committed by GitHub
parent 8c03868808
commit 6fdc711b4a
13 changed files with 110 additions and 5 deletions

View File

@ -482,3 +482,16 @@ QUnit.test("can select an option from a dropdown", async assert => {
await field.selectRowByValue("Cat");
assert.equal(field.header().value(), "Cat", "it sets the value of the field");
});
acceptance("User Preferences disabling dark mode", {
loggedIn: true,
settings: { default_dark_mode_color_scheme_id: 1 }
});
QUnit.test("shows option to disable dark mode", async assert => {
await visit("/u/eviltrout/preferences/interface");
assert.ok(
$(".control-group.dark-mode").length,
"it has the option to disable dark mode"
);
});