fix: editor e2e tests

This commit is contained in:
Tienson Qin
2024-01-15 15:35:34 +08:00
parent 774a159451
commit af8478a6ec
10 changed files with 108 additions and 77 deletions

View File

@@ -214,7 +214,9 @@
(gdom/getElement (str "ls-block-" (:block/uuid block))))]
(state/set-editing! "" content block text-range {:ref next-edit-node})
(if next-edit-node
(mark-last-input-time! repo)
(do
(state/update-tx-after-cursor-state!)
(mark-last-input-time! repo))
(util/schedule (fn [] (edit-block-aux repo block content block-node text-range (update opts :retry-times inc))))))))
(defn sanity-block-content