summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorCaio Carrara <ccarrara@thoughtworks.com>2016-03-29 18:09:03 -0300
committerCaio Carrara <ccarrara@thoughtworks.com>2016-03-29 18:09:03 -0300
commitb512200aef602afba340321a2ae89fa9293dde73 (patch)
tree62cf0e354188b657021739f4f28f00f771d86a58 /web-ui/test
parent646f3647f131570b15c70e59ee70633545ef4f73 (diff)
Issue #622 - hide reply buttons
It changes the trigger of event which show the reply container to after the iframe received the message with email body.
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/mail_view/ui/mail_view.spec.js6
-rw-r--r--web-ui/test/spec/mixins/with_mail_sandbox.spec.js14
2 files changed, 14 insertions, 6 deletions
diff --git a/web-ui/test/spec/mail_view/ui/mail_view.spec.js b/web-ui/test/spec/mail_view/ui/mail_view.spec.js
index 850687be..f44d71ee 100644
--- a/web-ui/test/spec/mail_view/ui/mail_view.spec.js
+++ b/web-ui/test/spec/mail_view/ui/mail_view.spec.js
@@ -35,12 +35,6 @@ describeComponent('mail_view/ui/mail_view', function () {
expect(openNoMessageSelectedEvent).toHaveBeenTriggeredOn(document);
});
- it('should open reply container', function () {
- var showContainerEvent = spyOnEvent(document, Pixelated.events.ui.replyBox.showReplyContainer);
- this.component.displayMail({}, testData);
- expect(showContainerEvent).toHaveBeenTriggeredOn(document);
- });
-
it('removes the tag from the mail when the tag label is clicked', function() {
var updateSpy = spyOnEvent(document, Pixelated.events.mail.tags.update);
diff --git a/web-ui/test/spec/mixins/with_mail_sandbox.spec.js b/web-ui/test/spec/mixins/with_mail_sandbox.spec.js
new file mode 100644
index 00000000..7f5c39a3
--- /dev/null
+++ b/web-ui/test/spec/mixins/with_mail_sandbox.spec.js
@@ -0,0 +1,14 @@
+describeMixin('mixins/with_mail_sandbox', function() {
+ 'use strict';
+
+ beforeEach(function() {
+ this.setupComponent();
+ });
+
+ it('should open reply container', function () {
+ var showContainerEvent = spyOnEvent(document, Pixelated.events.ui.replyBox.showReplyContainer);
+ this.component.showMailOnSandbox(Pixelated.testData().parsedMail.html);
+ expect(showContainerEvent).toHaveBeenTriggeredOn(document);
+ });
+
+});