FEATURE: auto expand incoming/outgoing links

This commit is contained in:
Sam
2016-06-08 16:48:37 +10:00
parent 7aac5baeed
commit 6d10812b26
5 changed files with 38 additions and 26 deletions

View File

@ -14,10 +14,7 @@ widgetTest("duplicate links", {
});
},
test(assert) {
click('.expand-links');
andThen(() => {
assert.equal(this.$('.post-links a.track-link').length, 1, 'it hides the dupe link');
});
assert.equal(this.$('.post-links a.track-link').length, 1, 'it hides the dupe link');
}
});
@ -38,7 +35,7 @@ widgetTest("collapsed links", {
});
},
test(assert) {
assert.ok(this.$('.expand-links').length, 'collapsed by default');
assert.ok(this.$('.expand-links').length === 1, 'collapsed by default');
click('a.expand-links');
andThen(() => {
assert.equal(this.$('.post-links a.track-link').length, 7);