diff --git a/e2e-tests/editor.spec.ts b/e2e-tests/editor.spec.ts index 58e0d21b292..ca97ae51047 100644 --- a/e2e-tests/editor.spec.ts +++ b/e2e-tests/editor.spec.ts @@ -168,8 +168,6 @@ test('copy & paste block ref and replace its content', async ({ page, block }) = await createRandomPage(page) await block.mustType('Some random text') - // FIXME: https://github.com/logseq/logseq/issues/7541 - await page.waitForTimeout(1000) await page.keyboard.press(modKey + '+c') diff --git a/src/main/frontend/modules/outliner/core.cljs b/src/main/frontend/modules/outliner/core.cljs index ee133393dbe..221c87ddb05 100644 --- a/src/main/frontend/modules/outliner/core.cljs +++ b/src/main/frontend/modules/outliner/core.cljs @@ -13,8 +13,7 @@ [frontend.state :as state] [frontend.util :as util] [logseq.graph-parser.util :as gp-util] - [cljs.spec.alpha :as s] - [frontend.config :as config])) + [cljs.spec.alpha :as s])) (s/def ::block-map (s/keys :req [:db/id] :opt [:block/page :block/left :block/parent])) @@ -558,7 +557,7 @@ [{:block/uuid (tree/-get-id next) :block/left (:db/id left)}])) full-tx (util/concat-without-nil uuids-tx tx next-tx)] - (when (and replace-empty-target? (not config/test?) (state/editing?)) + (when (and replace-empty-target? (state/editing?)) (state/set-edit-content! (state/get-edit-input-id) (:block/content (first blocks)))) {:tx-data full-tx :blocks tx}))))