fix follow for contenteditable
This commit is contained in:
parent
10beccfab2
commit
4646e8b18d
3 changed files with 17 additions and 4 deletions
|
@ -8,8 +8,11 @@ describe('FollowComponent', () => {
|
|||
});
|
||||
|
||||
it('returns visible links', () => {
|
||||
let links = FollowComponent.getTargetElements(window.document);
|
||||
expect(links).to.have.lengthOf(1);
|
||||
let targets = FollowComponent.getTargetElements(window.document);
|
||||
expect(targets).to.have.lengthOf(3);
|
||||
|
||||
let ids = Array.prototype.map.call(targets, (e) => e.id);
|
||||
expect(ids).to.include.members(['visible_a', 'editable_div_1', 'editable_div_2']);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue