FIX: return missing href attribute for topic map participants avatars (#25981)

This commit is contained in:
Kelv 2024-03-01 11:14:57 +08:00 committed by GitHub
parent 6bcbe56116
commit 29458c436c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ export default class TopicParticipant extends Component {
}
get userUrl() {
userPath(this.args.participant);
return userPath(this.args.participant.username);
}
<template>

View File

@ -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();