mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
FIX: return missing href attribute for topic map participants avatars (#25981)
This commit is contained in:
parent
6bcbe56116
commit
29458c436c
@ -48,7 +48,7 @@ export default class TopicParticipant extends Component {
|
||||
}
|
||||
|
||||
get userUrl() {
|
||||
userPath(this.args.participant);
|
||||
return userPath(this.args.participant.username);
|
||||
}
|
||||
|
||||
<template>
|
||||
|
@ -15,7 +15,7 @@ module("Integration | Component | topic-participant", function (hooks) {
|
||||
|
||||
await render(hbs`<TopicMap::TopicParticipant @participant={{this.args}}/>`);
|
||||
|
||||
assert.dom("a.poster.trigger-user-card").exists();
|
||||
assert.dom("a.poster.trigger-user-card").hasAttribute("href", "/u/test");
|
||||
assert.dom("span.post-count").doesNotExist();
|
||||
assert.dom(".avatar-flair").doesNotExist();
|
||||
});
|
||||
@ -34,7 +34,7 @@ module("Integration | Component | topic-participant", function (hooks) {
|
||||
|
||||
await render(hbs`<TopicMap::TopicParticipant @participant={{this.args}}/>`);
|
||||
|
||||
assert.dom("a.poster.trigger-user-card").exists();
|
||||
assert.dom("a.poster.trigger-user-card").hasAttribute("href", "/u/test");
|
||||
assert.dom("span.post-count").exists();
|
||||
assert.dom(".group-devs a.poster").exists();
|
||||
assert.dom(".avatar-flair.avatar-flair-devs").exists();
|
||||
|
Loading…
Reference in New Issue
Block a user