summaryrefslogtreecommitdiff
path: root/web-ui/test/spec
diff options
context:
space:
mode:
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 () {