mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 03:17:19 +08:00
DEV: prevents toolbar callbacks to leak between tests (#9403)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { next } from "@ember/runloop";
|
||||
import { clearToolbarCallbacks } from "discourse/components/d-editor";
|
||||
import componentTest from "helpers/component-test";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import formatTextWithSelection from "helpers/d-editor-helper";
|
||||
@ -633,6 +634,11 @@ componentTest("emoji", {
|
||||
});
|
||||
this.set("value", "hello world.");
|
||||
},
|
||||
|
||||
afterEach() {
|
||||
clearToolbarCallbacks();
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
jumpEnd(find("textarea.d-editor-input")[0]);
|
||||
await click("button.emoji");
|
||||
|
Reference in New Issue
Block a user