DEV: Add appEvents for composer / DEditor toolbar events (#26517)

This commit is contained in:
Mark VanLandingham
2024-04-05 08:35:25 -05:00
committed by GitHub
parent b8d04fca88
commit 552203aa1d
5 changed files with 61 additions and 36 deletions

View File

@ -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"),