mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
FEATURE: auto expand incoming/outgoing links
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user