mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
tests: Test composing scheduling reminder indicator.
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user