mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
UX: don't show 'auto delete' option for TL4
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { acceptance } from 'helpers/qunit-helpers';
|
||||
import { acceptance, replaceCurrentUser } from 'helpers/qunit-helpers';
|
||||
acceptance('Topic - Edit timer', { loggedIn: true });
|
||||
|
||||
QUnit.test('default', assert => {
|
||||
@ -162,6 +162,22 @@ QUnit.test('schedule', assert => {
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test("TL4 can't auto-delete", assert => {
|
||||
replaceCurrentUser({ staff: false, trust_level: 4 });
|
||||
|
||||
visit('/t/internationalization-localization');
|
||||
click('.toggle-admin-menu');
|
||||
click('.topic-admin-status-update button');
|
||||
|
||||
const timerType = selectKit('.select-kit.timer-type');
|
||||
|
||||
timerType.expand();
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!timerType.rowByValue("delete").exists());
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test('auto delete', assert => {
|
||||
const timerType = selectKit('.select-kit.timer-type');
|
||||
const futureDateInputSelector = selectKit('.future-date-input-selector');
|
||||
|
Reference in New Issue
Block a user