From b492d6928dc757e56404a1a6f0d632658c38bc13 Mon Sep 17 00:00:00 2001 From: Giovane Date: Mon, 21 Sep 2015 17:38:55 -0300 Subject: #442 Shows success message after sending feedback --- web-ui/test/spec/mail_view/ui/feedback_box.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web-ui/test/spec/mail_view') 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!'}); + }); + }); }); -- cgit v1.2.3