test(e2e): add logseq.e2e.locator

This commit is contained in:
rcmerci
2025-05-07 15:18:54 +08:00
parent 8a8d855094
commit d5d5694f78
4 changed files with 40 additions and 8 deletions

View File

@@ -8,6 +8,7 @@
[logseq.e2e.block :as b]
[logseq.e2e.fixtures :as fixtures]
[logseq.e2e.keyboard :as k]
[logseq.e2e.locator :as loc]
[logseq.e2e.util :as util]
[wally.main :as w]
[wally.repl :as repl]))
@@ -252,8 +253,10 @@
(util/input "template 1")
(k/enter)
(doseq [text ["block 1" "block 2" "block 3"]]
(assert/assert-have-count (.or (w/-query (format ".ls-block .block-title-wrap:text('%s')" text))
(w/-query (format ".ls-block textarea:text('%s')" text))) 2))))
(assert/assert-have-count
(loc/or (format ".ls-block .block-title-wrap:text('%s')" text)
(format ".ls-block textarea:text('%s')" text))
2))))
(deftest embed-html-test
(testing "embed html"