Browse Source

test(e2e,rtc): add another conflict update case

rcmerci 4 tháng trước cách đây
mục cha
commit
c95e1aad7f
1 tập tin đã thay đổi với 20 bổ sung22 xóa
  1. 20 22
      clj-e2e/test/logseq/e2e/rtc_extra_test.clj

+ 20 - 22
clj-e2e/test/logseq/e2e/rtc_extra_test.clj

@@ -255,9 +255,7 @@
           (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 0)))
           (b/delete-blocks)))
       (validate-2-graphs))
-    (comment
-      "this case is failing now"
-      (testing "
+    (testing "
 origin:
 - block2
 - block3
@@ -270,22 +268,22 @@ page2:
 ;; block2 deleted
 - block4
   - block3"
-        (rtc/with-stop-restart-rtc
-          [@*page1 @*page2]
-          [@*page1 (rtc/with-wait-tx-updated (b/new-block "page1-done-2"))
-           @*page2 (rtc/with-wait-tx-updated (b/new-block "page2-done-2"))]
-          (w/with-page @*page1
-            (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
-            (b/indent)
-            (k/arrow-down)
-            (b/indent)
-            (b/indent))
-          (w/with-page @*page2
-            (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 2)))
-            (b/delete-blocks)
-            (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
-            (k/shift+arrow-down)
-            (k/meta+shift+arrow-down)
-            (k/enter)
-            (b/indent)))
-        (validate-2-graphs)))))
+      (rtc/with-stop-restart-rtc
+        [@*page1 @*page2]
+        [@*page1 (rtc/with-wait-tx-updated (b/new-block "page1-done-2"))
+         @*page2 (rtc/with-wait-tx-updated (b/new-block "page2-done-2"))]
+        (w/with-page @*page1
+          (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
+          (b/indent)
+          (k/arrow-down)
+          (b/indent)
+          (b/indent))
+        (w/with-page @*page2
+          (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 2)))
+          (b/delete-blocks)
+          (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
+          (k/shift+arrow-down)
+          (k/meta+shift+arrow-down)
+          (k/enter)
+          (b/indent)))
+      (validate-2-graphs))))