diff options
author | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-03-23 13:55:25 +0100 |
---|---|---|
committer | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-04-05 11:03:39 +0200 |
commit | 9b8d8c46326a6d381f0440c37f7e8a91deec49c6 (patch) | |
tree | ca84a0e03689b7e5bf8df16d9ee73e7f9ff7b220 /web-ui/test | |
parent | fe29d4dfe352211f2c3f66a08f8db0048a119a8c (diff) |
Issue #648: Refactor mail-list
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/custom_matchers.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web-ui/test/custom_matchers.js b/web-ui/test/custom_matchers.js index d68d21a8..3de7fb5b 100644 --- a/web-ui/test/custom_matchers.js +++ b/web-ui/test/custom_matchers.js @@ -5,10 +5,10 @@ define([], function() { compare: function (mail, node) { var result = {}, equals = {}, subject, tags, from, date, messages = [], notMessages = []; - subject = node.find('#mail-' + mail.ident + ' .subject')[0]; - tags = _.map(node.find('#mail-' + mail.ident + ' .tags .tags-tag'), function (tag) { return tag.textContent; }); - date = node.find('#mail-' + mail.ident + ' .received-date'); - from = node.find('#mail-' + mail.ident + ' .from'); + subject = node.find('#mail-' + mail.ident + ' .mail-list-entry__item-subject')[0]; + tags = _.map(node.find('#mail-' + mail.ident + ' .mail-list-entry__item-tags .mail-list-entry__item-tags-tag'), function (tag) { return tag.textContent; }); + date = node.find('#mail-' + mail.ident + ' .mail-list-entry__item-date'); + from = node.find('#mail-' + mail.ident + ' .mail-list-entry__item-from'); if (subject && subject.textContent.trim() === mail.header.subject) { equals.subject = true; |