mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: channel member status live updates (#25925)
This commit is contained in:
@ -14,4 +14,21 @@ module("Discourse Chat | Component | chat-user-info", function (hooks) {
|
||||
assert.dom().containsText(this.user.username);
|
||||
assert.dom().containsText(this.user.name);
|
||||
});
|
||||
|
||||
test("status message", async function (assert) {
|
||||
this.siteSettings.enable_user_status = true;
|
||||
|
||||
this.set("user", this.currentUser);
|
||||
|
||||
this.user.setProperties({
|
||||
status: { description: "happy", emoji: "smile" },
|
||||
});
|
||||
|
||||
await render(
|
||||
hbs`<ChatUserInfo @user={{this.user}} @showStatus={{true}} @showStatusDescription={{true}} />`
|
||||
);
|
||||
|
||||
assert.dom("img.emoji[alt='smile']").exists("it shows the emoji");
|
||||
assert.dom().containsText("happy");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user