DEV: more reliable d-editor test (#7607)

DEV: more reliable d-editor test (#7607)

diff --git a/test/javascripts/components/d-editor-test.js.es6 b/test/javascripts/components/d-editor-test.js.es6
index cd43f18..26803f9 100644
--- a/test/javascripts/components/d-editor-test.js.es6
+++ b/test/javascripts/components/d-editor-test.js.es6
@@ -797,7 +797,7 @@ composerTestCase("replace-text event for composer", async function(assert) {
     ) {
       this.set("value", BEFORE);
 
-      textarea.focus();
+      await click(textarea);
 
       assert.ok(document.activeElement === textarea);
       assert.ok(textarea.value === BEFORE);

GitHub sha: a2d7eab3