mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 00:41:16 +08:00
DEV: Add appEvents for composer / DEditor toolbar events (#26517)
This commit is contained in:

committed by
GitHub

parent
b8d04fca88
commit
552203aa1d
@ -13,6 +13,7 @@ import {
|
||||
query,
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
import selectKit from "discourse/tests/helpers/select-kit-helper";
|
||||
import I18n from "discourse-i18n";
|
||||
|
||||
acceptance("Discourse Presence Plugin", function (needs) {
|
||||
needs.user({ whisperer: true });
|
||||
@ -82,7 +83,7 @@ acceptance("Discourse Presence Plugin", function (needs) {
|
||||
|
||||
const menu = selectKit(".toolbar-popup-menu-options");
|
||||
await menu.expand();
|
||||
await menu.selectRowByValue("toggleWhisper");
|
||||
await menu.selectRowByName(I18n.t("composer.toggle_whisper"));
|
||||
|
||||
assert.strictEqual(
|
||||
count(".composer-actions svg.d-icon-far-eye-slash"),
|
||||
|
Reference in New Issue
Block a user