diff options
author | Anike Arni <anikarni@gmail.com> | 2017-03-24 17:54:55 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 17:54:55 -0300 |
commit | 367ad8bb015f69e287765137646a6bc6c1c5aff5 (patch) | |
tree | bec2aad0ab91b43d1bd74120ead7cc1c2d933012 /web-ui/test | |
parent | 643184750bbecff57b96da47d7064f67a66f4586 (diff) | |
parent | 56fdf12fd1d7f583e4a07e84b1af4595182c0d15 (diff) |
Merge pull request #1025 from pixelated/send-mail-feedback
[#830] Send mail feedback
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/spec/mail_view/ui/send_button.spec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web-ui/test/spec/mail_view/ui/send_button.spec.js b/web-ui/test/spec/mail_view/ui/send_button.spec.js index f869362e..54e97e3a 100644 --- a/web-ui/test/spec/mail_view/ui/send_button.spec.js +++ b/web-ui/test/spec/mail_view/ui/send_button.spec.js @@ -95,6 +95,15 @@ describeComponent('mail_view/ui/send_button', function () { expect(this.$node.prop('disabled')).toBeTruthy(); }); + it('displays sending message', function () { + var displayMessageEvent = spyOnEvent(document, Pixelated.events.ui.userAlerts.displayMessage); + + this.$node.click(); + + expect(displayMessageEvent).toHaveBeenTriggeredOnAndWith(document, + { message: 'Sending...', class: 'success', dismissTimeout: 60000 }); + }); + it('enables again if sending errors out', function() { expect(this.$node.text()).toBe(i18n.t('send')); |