tests: Test composing scheduling reminder indicator.

This commit is contained in:
Joshua Pan
2018-07-26 00:46:10 -07:00
committed by showell
parent bf8aa2a1d7
commit 28d04f6960

View File

@@ -197,6 +197,11 @@ run_test('validate', () => {
assert.equal($("#compose-send-button").prop('disabled'), false); assert.equal($("#compose-send-button").prop('disabled'), false);
assert.equal($('#compose-error-msg').html(), i18n.t('You have nothing to send!')); assert.equal($('#compose-error-msg').html(), i18n.t('You have nothing to send!'));
reminder.is_deferred_delivery = () => true;
compose.validate();
assert.equal($('#sending-indicator').html(), 'translated: Scheduling...');
reminder.is_deferred_delivery = noop;
add_content_to_compose_box(); add_content_to_compose_box();
var zephyr_checked = false; var zephyr_checked = false;
$("#zephyr-mirror-error").is = function () { $("#zephyr-mirror-error").is = function () {