UX: removes silence from chat message actions (#19282)
This commit is contained in:
@@ -236,21 +236,6 @@ acceptance("Discourse Chat - without unread", function (needs) {
|
||||
currentUserDropdown.rowByValue("rebakeMessage").exists(),
|
||||
"it shows the rebake button"
|
||||
);
|
||||
|
||||
assert.notOk(
|
||||
currentUserDropdown.rowByValue("silence").exists(),
|
||||
"it hides the silence button"
|
||||
);
|
||||
|
||||
const notCurrentUserDropdown = selectKit(
|
||||
".chat-message-actions-container[data-id='175'] .more-buttons"
|
||||
);
|
||||
await triggerEvent(".chat-message-container[data-id='175']", "mouseenter");
|
||||
await notCurrentUserDropdown.expand();
|
||||
assert.ok(
|
||||
notCurrentUserDropdown.rowByValue("silence").exists(),
|
||||
"it shows the silence button"
|
||||
);
|
||||
});
|
||||
|
||||
test("Message controls are present and correct for permissions", async function (assert) {
|
||||
@@ -288,11 +273,6 @@ acceptance("Discourse Chat - without unread", function (needs) {
|
||||
"it hides the flag button"
|
||||
);
|
||||
|
||||
assert.notOk(
|
||||
currentUserDropdown.rowByValue("silence").exists(),
|
||||
"it hides the silence button"
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
currentUserDropdown.rowByValue("deleteMessage").exists(),
|
||||
"it shows the delete button"
|
||||
|
||||
Reference in New Issue
Block a user