mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 05:20:15 +08:00
teach acceptance test to work on the last day of the month
This commit is contained in:
parent
05f5df69b1
commit
610d7a9412
@ -143,9 +143,9 @@ QUnit.test('auto delete', assert => {
|
||||
});
|
||||
|
||||
expandSelectKit('.future-date-input-selector');
|
||||
selectKitSelectRow('next_month', { selector: '.future-date-input-selector' });
|
||||
selectKitSelectRow('two_weeks', { selector: '.future-date-input-selector' });
|
||||
andThen(() => {
|
||||
assert.equal(selectKit('.future-date-input-selector').header.name(), 'Next month');
|
||||
assert.equal(selectKit('.future-date-input-selector').header.name(), 'Two Weeks');
|
||||
const regex = /will be automatically deleted/g;
|
||||
const html = find('.future-date-input .topic-status-info').html().trim();
|
||||
assert.ok(regex.test(html));
|
||||
|
Loading…
x
Reference in New Issue
Block a user