mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FIX: muted was not working in topic timeline (#9021)
This commit is contained in:
@ -30,4 +30,29 @@ QUnit.test("Updating topic notification level", async assert => {
|
||||
"Watching",
|
||||
"it should display the right notification level"
|
||||
);
|
||||
|
||||
const timelineNotificationOptions = selectKit(
|
||||
".topic-timeline .widget-component-connector .topic-notifications-options"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
timelineNotificationOptions.header().value(),
|
||||
"3",
|
||||
"it should display the right notification level"
|
||||
);
|
||||
|
||||
await timelineNotificationOptions.expand();
|
||||
await timelineNotificationOptions.selectRowByValue("0");
|
||||
|
||||
assert.equal(
|
||||
timelineNotificationOptions.header().value(),
|
||||
"0",
|
||||
"it should display the right notification level"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
notificationOptions.header().label(),
|
||||
"Muted",
|
||||
"it should display the right notification level"
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user