mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
test(e2e,rtc): simplify rtc-outliner-test
This commit is contained in:
@@ -215,24 +215,14 @@
|
||||
(let [{:keys [_local-tx remote-tx]}
|
||||
(rtc/with-wait-tx-updated
|
||||
(test-fn))]
|
||||
(reset! *latest-remote-tx remote-tx))))]
|
||||
|
||||
;; testing while rtc connected
|
||||
(let [*latest-remote-tx (atom nil)]
|
||||
(new-logseq-page)
|
||||
(test-fn-in-page2 *latest-remote-tx)
|
||||
(w/with-page @*page1
|
||||
(rtc/wait-tx-update-to @*latest-remote-tx))
|
||||
(validate-2-graphs))
|
||||
|
||||
;; testing while rtc off then on
|
||||
(let [*latest-remote-tx (atom nil)]
|
||||
(new-logseq-page)
|
||||
(rtc/with-stop-restart-rtc
|
||||
[@*page1]
|
||||
[@*page1 (rtc/wait-tx-update-to @*latest-remote-tx)]
|
||||
(test-fn-in-page2 *latest-remote-tx))
|
||||
(validate-2-graphs)))))
|
||||
(reset! *latest-remote-tx remote-tx))))
|
||||
*latest-remote-tx (atom nil)]
|
||||
(new-logseq-page)
|
||||
(rtc/with-stop-restart-rtc
|
||||
[@*page1]
|
||||
[@*page1 (rtc/wait-tx-update-to @*latest-remote-tx)]
|
||||
(test-fn-in-page2 *latest-remote-tx))
|
||||
(validate-2-graphs))))
|
||||
|
||||
(deftest rtc-outliner-conflict-update-test
|
||||
(let [title-prefix "rtc-outliner-conflict-update-test"]
|
||||
|
||||
Reference in New Issue
Block a user