summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/mail_view')
-rw-r--r--web-ui/test/spec/mail_view/ui/send_button.spec.js12
1 files changed, 12 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 ff1eecde..dc9b940d 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
@@ -91,6 +91,18 @@ describeComponent('mail_view/ui/send_button', function () {
expect(this.$node.text()).toBe('Sending...');
expect(this.$node.prop('disabled')).toBeTruthy();
});
+
+ it('enables again if sending errors out', function() {
+ expect(this.$node.text()).toBe('Send');
+
+ this.$node.click();
+
+ $(document).trigger(Pixelated.events.mail.send_failed);
+
+ expect(this.$node.text()).toBe('Send');
+ expect(this.$node.prop('disabled')).not.toBeTruthy();
+
+ })
});
describe('after clicking', function () {