From b45ffea6a45de911710eb9868596987e27b5c707 Mon Sep 17 00:00:00 2001 From: Magnus Bergmark Date: Mon, 16 Jul 2018 13:04:26 +0200 Subject: Allow following elements --- test/content/components/common/follow.html | 5 +++++ test/content/components/common/follow.test.js | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'test/content/components/common') diff --git a/test/content/components/common/follow.html b/test/content/components/common/follow.html index eb0decd..b2a2d74 100644 --- a/test/content/components/common/follow.html +++ b/test/content/components/common/follow.html @@ -8,5 +8,10 @@
link
link
link
+
+ summary link + Some details + not visible +
diff --git a/test/content/components/common/follow.test.js b/test/content/components/common/follow.test.js index 4fc11d0..90d6cf5 100644 --- a/test/content/components/common/follow.test.js +++ b/test/content/components/common/follow.test.js @@ -11,10 +11,15 @@ describe('FollowComponent', () => { window, { width: window.innerWidth, height: window.innerHeight }, { x: 0, y: 0 }); - expect(targets).to.have.lengthOf(3); + expect(targets).to.have.lengthOf(4); let ids = Array.prototype.map.call(targets, (e) => e.id); - expect(ids).to.include.members(['visible_a', 'editable_div_1', 'editable_div_2']); + expect(ids).to.include.members([ + 'visible_a', + 'editable_div_1', + 'editable_div_2', + 'summary_1', + ]); }); }); }); -- cgit v1.2.3