mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
test(e2e,rtc): update rtc-outliner-conflict-update-test
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
~@body
|
||||
(loop [i# 5]
|
||||
(when (zero? i#) (throw (ex-info "wait-tx-updated failed" {:old m# :new (get-rtc-tx)})))
|
||||
(util/wait-timeout 500)
|
||||
(w/wait-for "button.cloud.on.idle")
|
||||
(util/wait-timeout 1000)
|
||||
(let [new-m# (get-rtc-tx)
|
||||
new-local-tx# (or (:local-tx new-m#) 0)
|
||||
|
||||
@@ -253,16 +253,21 @@
|
||||
(b/indent))
|
||||
(w/with-page @*page2
|
||||
(w/click (format ".ls-block :text('%s')" (str title-prefix "-" 0)))
|
||||
(b/delete-blocks)
|
||||
)
|
||||
(b/delete-blocks))
|
||||
(w/with-page @*page1 (rtc/rtc-start))
|
||||
(w/with-page @*page2 (rtc/rtc-start))
|
||||
;; (validate-2-graphs)
|
||||
;; TODO: validate block contents which are not equal now(some BUG here)
|
||||
)
|
||||
))
|
||||
(w/with-page @*page1 (rtc/with-wait-tx-updated (b/new-block "xxxx")))
|
||||
(w/with-page @*page2 (rtc/with-wait-tx-updated (b/new-block "yyyy")))
|
||||
(validate-2-graphs)
|
||||
)))
|
||||
|
||||
(comment
|
||||
(do (w/with-page @*page1 (rtc/rtc-stop))
|
||||
(w/with-page @*page2 (rtc/rtc-stop)))
|
||||
|
||||
(do (w/with-page @*page1 (rtc/rtc-start))
|
||||
(w/with-page @*page2 (rtc/rtc-start)))
|
||||
|
||||
(let [title-prefix "xxxx"
|
||||
property-type "Text"]
|
||||
(w/with-page @*page1
|
||||
|
||||
Reference in New Issue
Block a user