From 7b86e24b9af22a7d045f1498c710ec40c44b345d Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 4 Jul 2018 11:23:45 +0200 Subject: [PATCH] Add missing CSS class to bookmark list item and fix test updates #1069 --- dist/converse.js | 2 +- spec/bookmarks.js | 24 ++++++++++++++++-------- src/templates/bookmark.html | 2 +- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/dist/converse.js b/dist/converse.js index 726ae84b2..0ffe4e56f 100644 --- a/dist/converse.js +++ b/dist/converse.js @@ -83944,7 +83944,7 @@ __p += ' hidden '; } ; __p += '" data-room-jid="' + __e(o.jid) + -'">\n \n { + const els = document.querySelectorAll('#chatrooms div.bookmarks.rooms-list .room-item a.list-item-link'); + expect(els[0].textContent).toBe("1st Bookmark"); + expect(els[1].textContent).toBe("Bookmark with a very very long name that will be shortened"); + expect(els[2].textContent).toBe("The Play's the Thing"); + done(); + }).catch(_.partial(console.error, _)); }); })); diff --git a/src/templates/bookmark.html b/src/templates/bookmark.html index b6e313a36..8a78b2f1d 100644 --- a/src/templates/bookmark.html +++ b/src/templates/bookmark.html @@ -1,5 +1,5 @@