test(e2e): fix loc/filter

This commit is contained in:
rcmerci
2025-05-08 23:58:11 +08:00
parent 6101ecd785
commit cc4f8dee49
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
(:require [clojure.string :as string]
[logseq.e2e.assert :as assert]
[logseq.e2e.keyboard :as k]
[logseq.e2e.locator :as loc]
[logseq.e2e.util :as util]
[wally.main :as w]))
@@ -13,7 +14,8 @@
(defn save-block
[text]
(w/fill util/editor-q text))
(w/fill util/editor-q text)
(assert/assert-is-visible (loc/filter util/editor-q :has-text text)))
(defn new-block
[title]

View File

@@ -26,5 +26,5 @@
(defn filter
"Return locator"
{:arglists '([q & {:keys [has has-text has-not has-not-text]}])}
[q & opts]
[q & {:as opts}]
(.filter (w/-query q) (->filter-options opts)))