diff --git a/test/javascripts/components/d-editor-test.js.es6 b/test/javascripts/components/d-editor-test.js.es6 index cd43f18c1d7..26803f99456 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);