test(e2e): fix template-test

This commit is contained in:
rcmerci
2025-05-06 18:50:38 +08:00
parent 81ed9bc09b
commit 57f72e1526
2 changed files with 13 additions and 7 deletions

View File

@@ -254,11 +254,9 @@
(util/input-command "template")
(util/input "template 1")
(k/enter)
(util/exit-edit)
(assert/assert-in-normal-mode?)
(let [content (w/all-text-contents ".ls-block")]
(doseq [text ["block 1" "block 2" "block 3"]]
(is (= 2 (count (filter #(= % text) content))))))))
(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))))
(deftest embed-html-test
(testing "embed html"