mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 18:15:31 +08:00
Add a test for topic timer notice
This commit is contained in:
parent
e6e0c76c94
commit
900fcb9da0
@ -370,4 +370,18 @@ acceptance("Topic - Edit timer", function (needs) {
|
||||
|
||||
assert.deepEqual(options, expected);
|
||||
});
|
||||
|
||||
test("Does not show timer notice unless timer set", async function (assert) {
|
||||
updateCurrentUser({ moderator: true });
|
||||
|
||||
await visit("/t/internationalization-localization");
|
||||
await click(".toggle-admin-menu");
|
||||
await click(".admin-topic-timer-update button");
|
||||
|
||||
const timerType = selectKit(".select-kit.timer-type");
|
||||
await timerType.expand();
|
||||
await timerType.selectRowByValue("close_after_last_post");
|
||||
|
||||
assert.notOk(exists(".topic-timer-heading"));
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user