From 610d7a94127888084ac2866be27b168de258b4b9 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 30 Nov 2017 13:20:04 +1100 Subject: [PATCH] teach acceptance test to work on the last day of the month --- test/javascripts/acceptance/topic-edit-timer-test.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/javascripts/acceptance/topic-edit-timer-test.js.es6 b/test/javascripts/acceptance/topic-edit-timer-test.js.es6 index c49432e50e4..588908f6603 100644 --- a/test/javascripts/acceptance/topic-edit-timer-test.js.es6 +++ b/test/javascripts/acceptance/topic-edit-timer-test.js.es6 @@ -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));