UX: Clicking a participant in the topic map should just show the card

This commit is contained in:
Robin Ward
2016-05-11 15:09:36 -04:00
parent 7c0fb41ec0
commit 47720ba1ca
3 changed files with 5 additions and 14 deletions

View File

@ -677,7 +677,7 @@ widgetTest("topic map - few posts", {
});
widgetTest("topic map - participants", {
template: '{{mount-widget widget="post" args=args toggleParticipant="toggleParticipant"}}',
template: '{{mount-widget widget="post" args=args}}',
setup() {
this.set('args', {
showTopicMap: true,
@ -690,8 +690,6 @@ widgetTest("topic map - participants", {
],
userFilters: ['sam', 'codinghorror']
});
this.on('toggleParticipant', () => this.participantToggled = true);
},
test(assert) {
assert.equal(this.$('li.avatars a.poster').length, 3, 'limits to three participants');
@ -702,9 +700,6 @@ widgetTest("topic map - participants", {
assert.equal(this.$('.topic-map-expanded a.poster').length, 4, 'shows all when expanded');
assert.equal(this.$('a.poster.toggled').length, 2, 'two are toggled');
});
click('.topic-map-expanded a.poster:eq(0)');
andThen(() => assert.ok(this.participantToggled));
}
});