diff --git a/app/assets/javascripts/discourse/app/components/topic-list/unread-indicator.gjs b/app/assets/javascripts/discourse/app/components/topic-list/unread-indicator.gjs index adacb8611ab..79866942fc4 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/unread-indicator.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/unread-indicator.gjs @@ -26,12 +26,8 @@ export default class UnreadIndicator extends Component { return `/private-messages/unread-indicator/${this.args.topic.id}`; } - get isUnread() { - return typeof this.args.topic.get("unread_by_group_member") !== "undefined"; - } - ); + + assert + .dom(".badge.badge-notification.unread-indicator") + .exists({ count: 1 }); + assert + .dom(".topic-list-item[data-topic-id='1235'] .unread-indicator") + .exists(); + }); });