FIX: Update user status test (#144)
This commit is contained in:
parent
b22c682077
commit
4462279b45
|
@ -53,10 +53,10 @@ acceptance("Docs - user status", function (needs) {
|
||||||
|
|
||||||
const newStatus = { emoji: "surfing_man", description: "surfing" };
|
const newStatus = { emoji: "surfing_man", description: "surfing" };
|
||||||
await publishToMessageBus(`/user-status`, { [mentionedUserId]: newStatus });
|
await publishToMessageBus(`/user-status`, { [mentionedUserId]: newStatus });
|
||||||
assert
|
|
||||||
.dom(".mention .user-status")
|
|
||||||
.hasAttribute("title", newStatus.description);
|
|
||||||
|
|
||||||
|
assert
|
||||||
|
.dom(`.mention .user-status-message .emoji[alt='${newStatus.emoji}']`)
|
||||||
|
.exists();
|
||||||
await publishToMessageBus(`/user-status`, { [mentionedUserId]: null });
|
await publishToMessageBus(`/user-status`, { [mentionedUserId]: null });
|
||||||
assert.dom(".mention .user-status").doesNotExist();
|
assert.dom(".mention .user-status").doesNotExist();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue