mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
DEV: group_list site settings should store IDs instead of group names (#7860)
* DEV: group_list site settings should store IDs instead of group names * Ship site setting to know when we should migrate group_list settings * Migrate existing group_list site settings * Bump migration timestamp and don't set null when migrating is not possible.
This commit is contained in:
@ -32,7 +32,7 @@ componentTest("default", {
|
||||
setting: "foo_bar",
|
||||
type: "group_list",
|
||||
validValues: undefined,
|
||||
value: "Donuts"
|
||||
value: "1"
|
||||
})
|
||||
);
|
||||
},
|
||||
@ -42,16 +42,16 @@ componentTest("default", {
|
||||
|
||||
assert.equal(
|
||||
subject.header().value(),
|
||||
"Donuts",
|
||||
"1",
|
||||
"it selects the setting's value"
|
||||
);
|
||||
|
||||
await subject.expand();
|
||||
await subject.selectRowByValue("Cheese cake");
|
||||
await subject.selectRowByValue("2");
|
||||
|
||||
assert.equal(
|
||||
subject.header().value(),
|
||||
"Donuts,Cheese cake",
|
||||
"1,2",
|
||||
"it allows to select a setting from the list of choices"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user