mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: Allow overriding text size from a different device (#6955)
This brings the feature in line with the theme selection system
This commit is contained in:
@ -135,17 +135,13 @@ QUnit.test("font size change", async assert => {
|
||||
|
||||
await savePreferences();
|
||||
|
||||
assert.equal($.cookie("text_size"), "larger", "cookie is set");
|
||||
assert.equal($.cookie("text_size"), "larger|1", "cookie is set");
|
||||
await click(".text-size input[type=checkbox]");
|
||||
await expandSelectKit(".text-size .combobox");
|
||||
await selectKitSelectRowByValue("largest", ".text-size .combobox");
|
||||
|
||||
await savePreferences();
|
||||
assert.equal(
|
||||
$.cookie("text_size"),
|
||||
null,
|
||||
"cookie is unset when matches user preference"
|
||||
);
|
||||
assert.equal($.cookie("text_size"), "larger|1", "cookie remains the same");
|
||||
|
||||
$.removeCookie("text_size");
|
||||
});
|
||||
|
@ -106,7 +106,9 @@ export default {
|
||||
}
|
||||
],
|
||||
user: {
|
||||
user_option: {},
|
||||
user_option: {
|
||||
text_size_seq: 1
|
||||
},
|
||||
id: 19,
|
||||
username: "eviltrout",
|
||||
uploaded_avatar_id: null,
|
||||
|
Reference in New Issue
Block a user