summaryrefslogtreecommitdiff
path: root/web-ui/test/spec
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2016-01-27 15:44:17 -0200
committerGiovane <giovaneliberato@gmail.com>2016-01-27 16:06:26 -0200
commitec80088330eff5f44e8cc8eaab04c83c259b9098 (patch)
tree4aa75950bff5fd6efb8b79b4f9484dd1ac0e64c6 /web-ui/test/spec
parent0881d95faba366946a1942bf03eec2cb18318aaa (diff)
Keep attachments when forwarding a mail #509
- Extract the attachment file box to a partial - Adds logic to show/hide the download arrow icon
Diffstat (limited to 'web-ui/test/spec')
-rw-r--r--web-ui/test/spec/mail_view/ui/attachment_list.spec.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/web-ui/test/spec/mail_view/ui/attachment_list.spec.js b/web-ui/test/spec/mail_view/ui/attachment_list.spec.js
index 86a9297f..2308c227 100644
--- a/web-ui/test/spec/mail_view/ui/attachment_list.spec.js
+++ b/web-ui/test/spec/mail_view/ui/attachment_list.spec.js
@@ -32,8 +32,11 @@ describeMixin('mail_view/ui/attachment_list', function () {
$(document).trigger(Pixelated.events.mail.uploadedAttachment, stubAttachment);
- var expected_li = '<li><a href="/attachment/faked?filename=haha.txt&amp;encoding=base64">haha.txt <span class="attachment-size"> (4.39 Kb)</span></a></li>';
- expect(this.component.select('attachmentListItem').html()).toEqual(expected_li);
+ expect(this.component.select('attachmentListItem').html()).toContain('href="/attachment/faked');
+ expect(this.component.select('attachmentListItem').html()).toContain('filename=haha.txt');
+ expect(this.component.select('attachmentListItem').html()).toContain('encoding=base64');
+ expect(this.component.select('attachmentListItem').html()).toContain('haha.txt');
+ expect(this.component.select('attachmentListItem').html()).toContain('(4.39 Kb');
});
xit('should start uploading attachments', function () {