diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-03-24 11:04:16 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-03-24 11:04:16 -0300 |
commit | c9525311cddd1221e87e99ad04ac660338d54ba5 (patch) | |
tree | b3a6fdad3e4b5f74b1ca2e0fa962655b6f0e9033 /web-ui/test/spec/mail_view | |
parent | fc074ea9f9b7cd6708a5a878a7b56a4d76a9124e (diff) |
[#830] Adds sending feedback alert
Diffstat (limited to 'web-ui/test/spec/mail_view')
-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..08806e54 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' }); + }); + it('enables again if sending errors out', function() { expect(this.$node.text()).toBe(i18n.t('send')); |