summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-21 17:38:55 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-21 18:09:07 -0300
commitb492d6928dc757e56404a1a6f0d632658c38bc13 (patch)
tree21517158863acdfe7cb133e3e71f74484be32060 /web-ui/test/spec/mail_view
parent84b78e43770efa48d85818cf99aecccbd3035d7b (diff)
#442 Shows success message after sending feedback
Diffstat (limited to 'web-ui/test/spec/mail_view')
-rw-r--r--web-ui/test/spec/mail_view/ui/feedback_box.spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web-ui/test/spec/mail_view/ui/feedback_box.spec.js b/web-ui/test/spec/mail_view/ui/feedback_box.spec.js
index f0d55791..4702672c 100644
--- a/web-ui/test/spec/mail_view/ui/feedback_box.spec.js
+++ b/web-ui/test/spec/mail_view/ui/feedback_box.spec.js
@@ -32,6 +32,14 @@ describeComponent('mail_view/ui/feedback_box', function () {
this.component.trigger(document, Pixelated.events.feedback.submitted);
expect(spy).toHaveBeenTriggeredOn(document);
});
+
+ it('should shows success message after submit', function () {
+ var spy = spyOnEvent(document, Pixelated.events.ui.userAlerts.displayMessage);
+
+ this.component.trigger(document, Pixelated.events.feedback.submitted);
+ expect(spy).toHaveBeenTriggeredOnAndWith(document, {message: 'Thanks for your feedback!'});
+ });
+
});
});