teach acceptance test to work on the last day of the month

This commit is contained in:
Sam 2017-11-30 13:20:04 +11:00
parent 05f5df69b1
commit 610d7a9412
1 changed files with 2 additions and 2 deletions

View File

@ -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));